Index
All Classes|All Packages
A
- ACCEPT - com.github.badpop.jcoinbase.client.service.Headers
- ACCEPT_VALUE - com.github.badpop.jcoinbase.client.service.Headers
- alertIfCoinbaseHasReturnedWarnings(DataDto<T>) - Method in class com.github.badpop.jcoinbase.client.service.WarningManagerService
-
Log coinbase warnings if presents, do nothing otherwise
- allow(JCoinbaseClient) - Method in class com.github.badpop.jcoinbase.client.service.auth.AuthenticationService
-
Really important method that check if the given client is properly build to access coinbase protected resources.
- AuthenticationService - Class in com.github.badpop.jcoinbase.client.service.auth
-
Manage all the security mechanism required by Coinbase to call protected resources
- AuthenticationService() - Constructor for class com.github.badpop.jcoinbase.client.service.auth.AuthenticationService
- Authorizations - Class in com.github.badpop.jcoinbase.model.user
-
Coinbase current user's authorizations based on API key configuration
- Authorizations() - Constructor for class com.github.badpop.jcoinbase.model.user.Authorizations
- AuthorizationsDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- AuthorizationsDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.AuthorizationsDto
B
- bimap(Function<? super L, ? extends X>, Function<? super R, ? extends Y>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Maps callResult the failure or the success side of this disjunction.
- build(String, String, String) - Method in class com.github.badpop.jcoinbase.client.JCoinbaseProperties
-
Call this method to build a properly configured JCoinbaseProperties.
- build(String, String, String, boolean) - Static method in class com.github.badpop.jcoinbase.client.JCoinbasePropertiesFactory
-
This method build the JCoinbaseClient needed Properties.
- build(String, String, String, long, boolean) - Method in class com.github.badpop.jcoinbase.client.JCoinbaseClient
-
This protected method build a new JCoinbaseClient with the given parameters
- build(String, String, String, long, boolean) - Static method in class com.github.badpop.jcoinbase.client.JCoinbaseClientFactory
-
Return a new
JCoinbaseClient
instance configured with the given parameters. - BUY - com.github.badpop.jcoinbase.model.data.Price.PriceType
C
- CallResult<L,R> - Class in com.github.badpop.jcoinbase.control
-
Call result is a simplified version of the vavr
Either
adapted to the JCoinbase needs. - CallResult() - Constructor for class com.github.badpop.jcoinbase.control.CallResult
- CallResult.Failure<L,R> - Class in com.github.badpop.jcoinbase.control
-
The
Failure
version of aCallResult
. - CallResult.FailureProjection<L,R> - Class in com.github.badpop.jcoinbase.control
-
A failure projection of a CallResult.
- CallResult.Success<L,R> - Class in com.github.badpop.jcoinbase.control
-
The
Success
version of aCallResult
. - CallResult.SuccessProjection<L,R> - Class in com.github.badpop.jcoinbase.control
-
A success projection of a CallResult.
- CB_ACCESS_KEY - com.github.badpop.jcoinbase.client.service.Headers
- CB_ACCESS_SIGN - com.github.badpop.jcoinbase.client.service.Headers
- CB_ACCESS_TIMESTAMP - com.github.badpop.jcoinbase.client.service.Headers
- CB_VERSION - com.github.badpop.jcoinbase.client.service.Headers
- CoinbaseDataService - Class in com.github.badpop.jcoinbase.client.service.data
- CoinbaseDataService() - Constructor for class com.github.badpop.jcoinbase.client.service.data.CoinbaseDataService
- CoinbaseError - Class in com.github.badpop.jcoinbase.model
-
The CoinbaseError is a class that allows to return the errors returned by the coinbase api in a non-breaking way
- CoinbaseError() - Constructor for class com.github.badpop.jcoinbase.model.CoinbaseError
- CoinbaseUserService - Class in com.github.badpop.jcoinbase.client.service.user
- CoinbaseUserService() - Constructor for class com.github.badpop.jcoinbase.client.service.user.CoinbaseUserService
- com.github.badpop.jcoinbase.client - package com.github.badpop.jcoinbase.client
- com.github.badpop.jcoinbase.client.service - package com.github.badpop.jcoinbase.client.service
- com.github.badpop.jcoinbase.client.service.auth - package com.github.badpop.jcoinbase.client.service.auth
- com.github.badpop.jcoinbase.client.service.data - package com.github.badpop.jcoinbase.client.service.data
- com.github.badpop.jcoinbase.client.service.data.dto - package com.github.badpop.jcoinbase.client.service.data.dto
- com.github.badpop.jcoinbase.client.service.dto - package com.github.badpop.jcoinbase.client.service.dto
- com.github.badpop.jcoinbase.client.service.user - package com.github.badpop.jcoinbase.client.service.user
- com.github.badpop.jcoinbase.client.service.user.dto - package com.github.badpop.jcoinbase.client.service.user.dto
- com.github.badpop.jcoinbase.client.service.utils - package com.github.badpop.jcoinbase.client.service.utils
- com.github.badpop.jcoinbase.control - package com.github.badpop.jcoinbase.control
- com.github.badpop.jcoinbase.exception - package com.github.badpop.jcoinbase.exception
- com.github.badpop.jcoinbase.model - package com.github.badpop.jcoinbase.model
- com.github.badpop.jcoinbase.model.data - package com.github.badpop.jcoinbase.model.data
- com.github.badpop.jcoinbase.model.request - package com.github.badpop.jcoinbase.model.request
- com.github.badpop.jcoinbase.model.user - package com.github.badpop.jcoinbase.model.user
- com.github.badpop.jcoinbase.service - package com.github.badpop.jcoinbase.service
- contains(T) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Shortcut for
exists(e -> Objects.equals(e, element))
, tests if the givenelement
is contained. - Country - Class in com.github.badpop.jcoinbase.model.user
-
A class representing the Coinbase country model
- Country() - Constructor for class com.github.badpop.jcoinbase.model.user.Country
- CountryDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- CountryDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.CountryDto
- Currency - Class in com.github.badpop.jcoinbase.model.data
-
A class representing the Coinbase currency model
- Currency() - Constructor for class com.github.badpop.jcoinbase.model.data.Currency
- CurrencyDto - Class in com.github.badpop.jcoinbase.client.service.data.dto
- CurrencyDto() - Constructor for class com.github.badpop.jcoinbase.client.service.data.dto.CurrencyDto
D
- data() - Method in class com.github.badpop.jcoinbase.client.JCoinbaseClient
-
This method provides a
DataService
allowing you to request coinbase public data using it's api - DataDto<T> - Class in com.github.badpop.jcoinbase.client.service.dto
- DataDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.DataDto
- DataErrorDto<T> - Class in com.github.badpop.jcoinbase.client.service.dto
- DataErrorDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.DataErrorDto
- DataErrorsDto - Class in com.github.badpop.jcoinbase.client.service.dto
- DataErrorsDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.DataErrorsDto
- DataService - Class in com.github.badpop.jcoinbase.client.service.data
- DataService() - Constructor for class com.github.badpop.jcoinbase.client.service.data.DataService
- DateAndTimeUtils - Interface in com.github.badpop.jcoinbase.client.service.utils
-
Utility interface giving access to methods working on date and times like Instants, LocalDateTime, ...
- deserialize(HttpResponse<String>, ObjectMapper, TypeReference<DataDto<T>>) - Static method in interface com.github.badpop.jcoinbase.client.service.JsonDeserializationService
-
Generic method to centralized the deserialization process of coinbase api responses and wrap the results in a
CallResult
object
E
- equals(Object) - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- equals(Object) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- equals(Object) - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- equals(Object) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- equals(Object) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Clarifies that functionalValues have a proper equals() method implemented.
- ErrorDto - Class in com.github.badpop.jcoinbase.client.service.dto
- ErrorDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.ErrorDto
- ErrorManagerService - Class in com.github.badpop.jcoinbase.service
-
An utility class to centralize error management when we need to log error and throw exceptions
- ErrorManagerService() - Constructor for class com.github.badpop.jcoinbase.service.ErrorManagerService
- ExchangeRates - Class in com.github.badpop.jcoinbase.model.data
-
A class representing the Coinbase exchange rates model
- ExchangeRates() - Constructor for class com.github.badpop.jcoinbase.model.data.ExchangeRates
- ExchangeRatesDto - Class in com.github.badpop.jcoinbase.client.service.data.dto
- ExchangeRatesDto() - Constructor for class com.github.badpop.jcoinbase.client.service.data.dto.ExchangeRatesDto
- exists(Predicate<? super T>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Checks, if an element exists such that the predicate holds.
F
- failure() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Returns a FailureProjection of this CallResult.
- failure(L) - Static method in class com.github.badpop.jcoinbase.control.CallResult
-
Constructs a
CallResult.Failure
- fetchAuthorizations(JCoinbaseClient, AuthenticationService) - Method in class com.github.badpop.jcoinbase.client.service.user.CoinbaseUserService
- fetchCurrencies(JCoinbaseClient) - Method in class com.github.badpop.jcoinbase.client.service.data.CoinbaseDataService
- fetchCurrentUser(JCoinbaseClient, AuthenticationService) - Method in class com.github.badpop.jcoinbase.client.service.user.CoinbaseUserService
- fetchExchangeRates(JCoinbaseClient, String) - Method in class com.github.badpop.jcoinbase.client.service.data.CoinbaseDataService
- fetchPriceByType(JCoinbaseClient, Price.PriceType, String, String) - Method in class com.github.badpop.jcoinbase.client.service.data.CoinbaseDataService
- fetchTime(JCoinbaseClient) - Method in class com.github.badpop.jcoinbase.client.service.data.CoinbaseDataService
- fetchUserById(JCoinbaseClient, AuthenticationService, String) - Method in class com.github.badpop.jcoinbase.client.service.user.CoinbaseUserService
- filter(Predicate<? super L>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Returns
Some
value of type L if this is a failure projection of a Failure value and the predicate applies to the underlying value. - filter(Predicate<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Filters this success-biased
CallResult
by testing a predicate. - filter(Predicate<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Returns
Some
value of type R if this is a success projection of a Success value and the predicate applies to the underlying value. - filterNot(Predicate<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Filters this success-biased
CallResult
by testing a predicate. - filterOrElse(Predicate<? super R>, Function<? super R, ? extends L>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Filters this success-biased
CallResult
by testing a predicate. - flatMap(Function<? super L, ? extends CallResult.FailureProjection<? extends U, R>>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
FlatMaps this FailureProjection.
- flatMap(Function<? super R, ? extends CallResult.SuccessProjection<L, ? extends U>>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
FlatMaps this SuccessProjection.
- flatMap(Function<? super R, ? extends CallResult<L, ? extends U>>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
FlatMaps this success-biased CallResult.
- fold(Function<? super L, ? extends U>, Function<? super R, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Folds callResult the failure or the success side of this disjunction.
- forAll(Predicate<? super T>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Checks, if the given predicate holds for all elements.
- fromInstant(Instant) - Static method in interface com.github.badpop.jcoinbase.client.service.utils.DateAndTimeUtils
-
This method transform a Java
Instant
to a JavaLocalDateTime
using the system default time zone and wrap it into a VavrOption
- fromString(String) - Static method in enum com.github.badpop.jcoinbase.model.data.Price.PriceType
-
Retrieve a price type from a string representation.
- fromString(String) - Static method in enum com.github.badpop.jcoinbase.model.user.ResourceType
-
Retrieve a resource type from a string representation.
- fromStringAsJava(String) - Static method in enum com.github.badpop.jcoinbase.model.user.ResourceType
-
Retrieve a resource type from a string representation.
- FunctionalValue<T> - Interface in com.github.badpop.jcoinbase.control
-
Call result is a simplified version of the vavr
Value
adapted to the JCoinbase needs.
G
- get() - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- get() - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Gets the
Failure
value or throws. - get() - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- get() - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Gets the
Success
value or throws. - get() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Gets the underlying functionalValue or throws if no functionalValue is present.
- getAuthenticationHeaders(JCoinbaseProperties, String, String, String) - Method in class com.github.badpop.jcoinbase.client.service.auth.AuthenticationService
-
Get the headers required by the coinbase api to access protected resources like users or transactions
- getAuthenticationHeaders(Option<String>, Option<String>, Option<String>, long, String, String, String) - Method in class com.github.badpop.jcoinbase.client.service.auth.AuthenticationService
-
Get the headers required by the coinbase api to access protected resources like users or transactions
- getAuthorizations() - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getAuthorizationsAsJava() - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getCurrencies() - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getCurrenciesAsJava() - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getCurrentUser() - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getCurrentUserAsJava() - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getExchangeRates(String) - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getExchangeRatesAsJava(String) - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- getFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Returns the failure value.
- getFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- getOrElse(Supplier<? extends T>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns the underlying functionalValue if present, otherwise
other
. - getOrElse(L) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Gets the Failure value or an alternate value, if the projected CallResult is a Success.
- getOrElse(R) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Gets the Success value or an alternate value, if the projected CallResult is a Failure.
- getOrElse(T) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns the underlying functionalValue if present, otherwise
other
. - getOrElseGet(Function<? super L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Gets the Success value or an alternate value, if the projected CallResult is a Failure.
- getOrElseGet(Function<? super L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Gets the Success value or an alternate value, if the projected CallResult is a Failure.
- getOrElseGet(Function<? super R, ? extends L>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Gets the Failure value or an alternate value, if the projected CallResult is a Success.
- getOrElseThrow(Function<? super L, X>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Gets the Success value or throws, if the projected CallResult is a Failure.
- getOrElseThrow(Function<? super L, X>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Gets the Success value or throws, if the projected CallResult is a Failure.
- getOrElseThrow(Function<? super R, X>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Gets the Failure value or throws, if the projected CallResult is a Success.
- getOrElseThrow(Supplier<X>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns the underlying functionalValue if present, otherwise throws
supplier.get()
. - getOrElseTry(CheckedFunction0<? extends T>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns the underlying functionalValue if present, otherwise returns the result of
Try.of(supplier).get()
. - getOrNull() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns the underlying functionalValue if present, otherwise
null
. - getPrice(Price.PriceType, String, String) - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getPriceAsJava(Price.PriceType, String, String) - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getProfileBioAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the profile bio as a java Optional instead of a Vavr Option
- getProfileLocationAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the profile location as a java Optional instead of a Vavr Option
- getProfileUrlAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the profile url as a java Optional instead of a Vavr Option
- getRatesAsJavaMap() - Method in class com.github.badpop.jcoinbase.model.data.ExchangeRates
-
Return currency rates as a java Map instead of a Vavr Map
- getScopesAsJava() - Method in class com.github.badpop.jcoinbase.model.user.Authorizations
-
Return the Authorizations scopes as a java list instead of a vavr seq
- getStateAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the user's state as a java Optional instead of a Vavr Option
- getTime() - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getTimeAsJava() - Method in class com.github.badpop.jcoinbase.client.service.data.DataService
- getUserById(String) - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getUserByIdAsJava(String) - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- getUsernameAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the username as a java Optional instead of a Vavr Option
- getUserTypeAsJavaOptional() - Method in class com.github.badpop.jcoinbase.model.user.User
-
Give you the user type as a java Optional instead of a Vavr Option
H
- hashCode() - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- hashCode() - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- hashCode() - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- hashCode() - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- hashCode() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Clarifies that functionalValues have a proper hashCode() method implemented.
- Headers - Enum in com.github.badpop.jcoinbase.client.service
-
An enum to manage and centralize all the http headers required by the Coinbase api
I
- isAsync() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Checks if this
Value
is asynchronously (short: async) computed. - isBlank(CharSequence) - Static method in interface com.github.badpop.jcoinbase.client.service.utils.StringUtils
-
Checks if a CharSequence is empty (""), null or whitespace only.
- isEmpty() - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- isEmpty() - Method in class com.github.badpop.jcoinbase.control.CallResult
- isEmpty() - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- isEmpty() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Checks, this
Value
is empty, i.e. if the underlying functionalValue is absent. - isFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- isFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Returns whether this CallResult is a Failure.
- isFailure() - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- isLazy() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Checks if this
Value
is lazily evaluated. - isSingleValued() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
States whether this is a single-valued type.
- isSuccess() - Method in class com.github.badpop.jcoinbase.control.CallResult.Failure
- isSuccess() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Returns whether this CallResult is a Success.
- isSuccess() - Method in class com.github.badpop.jcoinbase.control.CallResult.Success
- iterator() - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- iterator() - Method in class com.github.badpop.jcoinbase.control.CallResult
- iterator() - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- iterator() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Returns a rich
io.vavr.collection.Iterator
.
J
- JCoinbaseClient - Class in com.github.badpop.jcoinbase.client
-
The JCoinbaseClient class is the main class of JCoinbase.
- JCoinbaseClient() - Constructor for class com.github.badpop.jcoinbase.client.JCoinbaseClient
- JCoinbaseClientFactory - Class in com.github.badpop.jcoinbase.client
-
A class factory to use to build
JCoinbaseClient
objects - JCoinbaseClientFactory() - Constructor for class com.github.badpop.jcoinbase.client.JCoinbaseClientFactory
- JCoinbaseException - Exception in com.github.badpop.jcoinbase.exception
-
The main JCoinbase exception
- JCoinbaseException(String) - Constructor for exception com.github.badpop.jcoinbase.exception.JCoinbaseException
- JCoinbaseException(String, Throwable) - Constructor for exception com.github.badpop.jcoinbase.exception.JCoinbaseException
- JCoinbaseException(Throwable) - Constructor for exception com.github.badpop.jcoinbase.exception.JCoinbaseException
- JCoinbaseProperties - Class in com.github.badpop.jcoinbase.client
-
This class is used to get properties from the jcoinbase.properties file and to wrap them with user parameters (api key, secret, api version, ...).
- JCoinbaseProperties() - Constructor for class com.github.badpop.jcoinbase.client.JCoinbaseProperties
- JCoinbasePropertiesFactory - Class in com.github.badpop.jcoinbase.client
-
A class factory to use to build
JCoinbaseProperties
objects - JCoinbasePropertiesFactory() - Constructor for class com.github.badpop.jcoinbase.client.JCoinbasePropertiesFactory
- JsonDeserializationService - Interface in com.github.badpop.jcoinbase.client.service
-
Utility interface that allow us to deserialize coinbase api responses from json to java objects
M
- manageOnError(JCoinbaseException, String, Object...) - Method in class com.github.badpop.jcoinbase.service.ErrorManagerService
-
Log a parameterized message and throws the given exception
- manageOnError(JCoinbaseException, String, Throwable, Object...) - Method in class com.github.badpop.jcoinbase.service.ErrorManagerService
-
Log a parameterized message with a throwable and throws the given exception
- map(Function<? super L, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Maps the failure value if the projected CallResult is a Failure.
- map(Function<? super R, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Maps the value of this CallResult if it is a Success, performs no operation if this is a Failure.
- map(Function<? super R, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Maps the success value if the projected CallResult is a Success.
- map(Function<? super T, ? extends U>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Maps the underlying functionalValue to a different component type.
- mapFailure(Function<? super L, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Maps the value of this CallResult if it is a Failure, performs no operation if this is a Success.
- mapLeft(Function<? super L, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Maps the value of this CallResult if it is a Failure, performs no operation if this is a Success.
N
- narrow(CallResult<? extends L, ? extends R>) - Static method in class com.github.badpop.jcoinbase.control.CallResult
-
Narrows a widened
CallResult<? extends L, ? extends R>
toCallResult<L, R>
by performing a type-safe cast. - Nationality - Class in com.github.badpop.jcoinbase.model.user
-
A class representing the Coinbase nationality model
- Nationality() - Constructor for class com.github.badpop.jcoinbase.model.user.Nationality
- NationalityDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- NationalityDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.NationalityDto
O
- orElse(CallResult.FailureProjection<? extends L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- orElse(CallResult.SuccessProjection<? extends L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- orElse(CallResult<? extends L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
- orElse(Supplier<? extends CallResult.FailureProjection<? extends L, ? extends R>>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
- orElse(Supplier<? extends CallResult.SuccessProjection<? extends L, ? extends R>>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
- orElse(Supplier<? extends CallResult<? extends L, ? extends R>>) - Method in class com.github.badpop.jcoinbase.control.CallResult
- orElseRun(Consumer<? super L>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Runs an action in the case this is a projection on a Failure value.
- orElseRun(Consumer<? super L>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Runs an action in the case this is a projection on a Failure value.
- orElseRun(Consumer<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Runs an action in the case this is a projection on a Success value.
P
- peek(Consumer<? super L>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Applies the given action to the value if the projected callResult is a Failure.
- peek(Consumer<? super L>, Consumer<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Performs the given
failureAction
on the failure element if this is Failure. - peek(Consumer<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
- peek(Consumer<? super R>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Applies the given action to the value if the projected callResult is a Success.
- peek(Consumer<? super T>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Performs the given
action
on the first element if this is an eager implementation. - peekFailure(Consumer<? super L>) - Method in class com.github.badpop.jcoinbase.control.CallResult
- Price - Class in com.github.badpop.jcoinbase.model.data
-
A class representing the Coinbase price model
- Price() - Constructor for class com.github.badpop.jcoinbase.model.data.Price
- Price.PriceType - Enum in com.github.badpop.jcoinbase.model.data
-
There is three types of prices in Coinbase : BUY, SELL & SPOT.
- PriceDto - Class in com.github.badpop.jcoinbase.client.service.data.dto
- PriceDto() - Constructor for class com.github.badpop.jcoinbase.client.service.data.dto.PriceDto
R
- recover(Function<? super L, ? extends R>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Calls
recoveryFunction
if the projected CallResult is a Failure, or returnsthis
if Success. - recoverWith(Function<? super L, ? extends CallResult<? extends L, ? extends R>>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Calls recoveryFunction if the projected CallResult is a Failure, performs no operation if this is a Success.
- ReferralMoney - Class in com.github.badpop.jcoinbase.model.user
-
A class representing the Coinbase user's referral money model
- ReferralMoney() - Constructor for class com.github.badpop.jcoinbase.model.user.ReferralMoney
- ReferralMoneyDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- ReferralMoneyDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.ReferralMoneyDto
- ResourceType - Enum in com.github.badpop.jcoinbase.model.user
-
Coinbase return some resources with a field named resource.
S
- SELL - com.github.badpop.jcoinbase.model.data.Price.PriceType
- sequence(Iterable<? extends CallResult<? extends L, ? extends R>>) - Static method in class com.github.badpop.jcoinbase.control.CallResult
-
Reduces many
CallResult
s into a singleCallResult
by transforming anIterable<CallResult<L, R>>
into aCallResult<Seq<L>, Seq<R>>
. - SingleErrorDto - Class in com.github.badpop.jcoinbase.client.service.dto
- SingleErrorDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.SingleErrorDto
- singleFailureDeserialize(HttpResponse<String>, ObjectMapper, TypeReference<DataDto<T>>) - Static method in interface com.github.badpop.jcoinbase.client.service.JsonDeserializationService
-
Generic method to centralized the deserialization process of coinbase api responses and wrap the results in a
CallResult
object - spliterator() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
- SPOT - com.github.badpop.jcoinbase.model.data.Price.PriceType
- StringUtils - Interface in com.github.badpop.jcoinbase.client.service.utils
-
An utility interface that giving access to methods that validate Strings
- success() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Returns a SuccessProjection of this CallResult.
- success(R) - Static method in class com.github.badpop.jcoinbase.control.CallResult
-
Constructs a
CallResult.Success
- swap() - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Converts a
Failure
to aSuccess
vice versa by wrapping the value in a new type.
T
- Tiers - Class in com.github.badpop.jcoinbase.model.user
-
A class representing the Coinbase user's tiers model
- Tiers() - Constructor for class com.github.badpop.jcoinbase.model.user.Tiers
- TiersDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- TiersDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.TiersDto
- Time - Class in com.github.badpop.jcoinbase.model.data
-
A class representing the Coinbase time model
- Time() - Constructor for class com.github.badpop.jcoinbase.model.data.Time
- TimeDto - Class in com.github.badpop.jcoinbase.client.service.data.dto
- TimeDto() - Constructor for class com.github.badpop.jcoinbase.client.service.data.dto.TimeDto
- toAuthorizations() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.AuthorizationsDto
- toCallResult() - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Returns the underlying callResult of this projection.
- toCallResult() - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Returns the underlying callResult of this projection.
- toCallResult(Supplier<? extends L>) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Converts this to a
CallResult
. - toCallResult(L) - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Converts this to a
CallResult
. - toCoinbaseError() - Method in class com.github.badpop.jcoinbase.client.service.dto.ErrorDto
- toCoinbaseError() - Method in class com.github.badpop.jcoinbase.client.service.dto.SingleErrorDto
- toCoinbaseErrors() - Method in class com.github.badpop.jcoinbase.client.service.dto.DataErrorsDto
- toCountry() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.CountryDto
- toCurrency() - Method in class com.github.badpop.jcoinbase.client.service.data.dto.CurrencyDto
- toExchangeRates() - Method in class com.github.badpop.jcoinbase.client.service.data.dto.ExchangeRatesDto
- toJavaOptional() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Converts this to an
Optional
. - toNationality() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.NationalityDto
- toOption() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Converts this to an
Option
. - toPrice(Price.PriceType) - Method in class com.github.badpop.jcoinbase.client.service.data.dto.PriceDto
- toReferralMoney() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.ReferralMoneyDto
- toString() - Method in interface com.github.badpop.jcoinbase.control.FunctionalValue
-
Clarifies that functionalValues have a proper toString() method implemented.
- toTiers() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.TiersDto
- toTime() - Method in class com.github.badpop.jcoinbase.client.service.data.dto.TimeDto
- toUser() - Method in class com.github.badpop.jcoinbase.client.service.user.dto.UserDto
- transform(Function<? super CallResult.FailureProjection<L, R>, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult.FailureProjection
-
Transforms this
FailureProjection
. - transform(Function<? super CallResult.SuccessProjection<L, R>, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult.SuccessProjection
-
Transforms this
SuccessProjection
. - transform(Function<? super CallResult<L, R>, ? extends U>) - Method in class com.github.badpop.jcoinbase.control.CallResult
-
Transforms this
CallResult
.
U
- UNKNOWN - com.github.badpop.jcoinbase.model.user.ResourceType
- updateCurrentUser(JCoinbaseClient, AuthenticationService, UpdateCurrentUserRequest) - Method in class com.github.badpop.jcoinbase.client.service.user.CoinbaseUserService
- updateCurrentUser(UpdateCurrentUserRequest) - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- updateCurrentUserAsJava(UpdateCurrentUserRequest) - Method in class com.github.badpop.jcoinbase.client.service.user.UserService
- UpdateCurrentUserRequest - Class in com.github.badpop.jcoinbase.model.request
-
Create an instance of this class to update the current user and set the fields value for the fields you want to update.
- UpdateCurrentUserRequest() - Constructor for class com.github.badpop.jcoinbase.model.request.UpdateCurrentUserRequest
- user() - Method in class com.github.badpop.jcoinbase.client.JCoinbaseClient
-
This method provides a
UserService
allowing you to request coinbase public data using it's api - User - Class in com.github.badpop.jcoinbase.model.user
-
A class representing the Coinbase user model
- User() - Constructor for class com.github.badpop.jcoinbase.model.user.User
- USER - com.github.badpop.jcoinbase.model.user.ResourceType
- UserDto - Class in com.github.badpop.jcoinbase.client.service.user.dto
- UserDto() - Constructor for class com.github.badpop.jcoinbase.client.service.user.dto.UserDto
- UserService - Class in com.github.badpop.jcoinbase.client.service.user
- UserService() - Constructor for class com.github.badpop.jcoinbase.client.service.user.UserService
V
- valueOf(String) - Static method in enum com.github.badpop.jcoinbase.client.service.Headers
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.badpop.jcoinbase.model.data.Price.PriceType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.badpop.jcoinbase.model.user.ResourceType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.badpop.jcoinbase.client.service.Headers
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.github.badpop.jcoinbase.model.data.Price.PriceType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.github.badpop.jcoinbase.model.user.ResourceType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WarningDto - Class in com.github.badpop.jcoinbase.client.service.dto
- WarningDto() - Constructor for class com.github.badpop.jcoinbase.client.service.dto.WarningDto
- WarningManagerService - Class in com.github.badpop.jcoinbase.client.service
-
An utility class that allow JCoinbase to log warning returned by the coinbase api
- WarningManagerService() - Constructor for class com.github.badpop.jcoinbase.client.service.WarningManagerService
All Classes|All Packages