- CacheConfig - Class in org.nerd4j.utils.cache
-
Immutable object collecting all the configurations
needed by the
SelfLoadingCache.
- CacheConfig() - Constructor for class org.nerd4j.utils.cache.CacheConfig
-
Default constructor.
- CacheConfig(long, long, boolean, boolean, boolean) - Constructor for class org.nerd4j.utils.cache.CacheConfig
-
Constructor with parameters.
- CacheEntry<V> - Class in org.nerd4j.utils.cache
-
Represents an entry in the caching system related to a given key.
- CacheEntry() - Constructor for class org.nerd4j.utils.cache.CacheEntry
-
Default constructor.
- CacheEntry(V, long) - Constructor for class org.nerd4j.utils.cache.CacheEntry
-
Constructor with parameters.
- CacheEntry(V, Instant) - Constructor for class org.nerd4j.utils.cache.CacheEntry
-
Constructor with parameters.
- CacheKey - Class in org.nerd4j.utils.cache
-
- CacheKey() - Constructor for class org.nerd4j.utils.cache.CacheKey
-
Default constructor.
- CacheKey(Class<?>, String, Object[]) - Constructor for class org.nerd4j.utils.cache.CacheKey
-
Constructor with parameters.
- CacheKey.Prototype - Class in org.nerd4j.utils.cache
-
Prototype class populated with the data model type and version.
- cacheProvider - Variable in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Underlying caching system provider.
- CacheProvider<V> - Interface in org.nerd4j.utils.cache
-
Represents a provider of a caching system.
- cacheProvider - Variable in class org.nerd4j.utils.cache.SelfLoadingCacheBuilder
-
The underlying caching system provider.
- CacheProviderException - Exception in org.nerd4j.utils.cache
-
Represents an error occurred into the
CacheProvider
during caching operations.
- CacheProviderException(String) - Constructor for exception org.nerd4j.utils.cache.CacheProviderException
-
Constructs a new exception with the specified detail message.
- CacheProviderException(Throwable) - Constructor for exception org.nerd4j.utils.cache.CacheProviderException
-
Constructs a new exception with the specified cause and a detail message
of {@code (cause==null ?
- CacheProviderException(String, Throwable) - Constructor for exception org.nerd4j.utils.cache.CacheProviderException
-
Constructs a new exception with the specified detail message and cause.
- canSubtract(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Tells if the given interval can be subtracted from this one.
- canUnify(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Tells if this interval can be unified with the given one.
- capacity() - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Returns the capacity of the cache i.e. the maximum number of
entries this cache is able to keep.
- clear() - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Removes all elements from the cache.
- clear() - Method in interface org.nerd4j.utils.cache.CacheProvider
-
Removes all elements from the cache.
- closed(T, T) - Static method in class org.nerd4j.utils.math.Interval
-
Creates a new closed
Interval with the given limits.
- closedInf(T) - Static method in class org.nerd4j.utils.math.Interval
-
Creates a new
Interval with a closed inferior
limit and an unbounded superior limit.
- closedOpen(T, T) - Static method in class org.nerd4j.utils.math.Interval
-
Creates a new
Interval with a closed inferior limit
and an open superior limit.
- closedSup(T) - Static method in class org.nerd4j.utils.math.Interval
-
Creates a new
Interval with a closed superior
limit and an unbounded inferior limit.
- ComparablePair<L,R> - Class in org.nerd4j.utils.tuple
-
Represents an immutable and comparable pair of values.
- ComparablePair(L, Comparator<L>, R, Comparator<R>) - Constructor for class org.nerd4j.utils.tuple.ComparablePair
-
Constructor with parameters.
- ComparablePair.Builder<L> - Class in org.nerd4j.utils.tuple
-
Implementation of the
pattern builder intended to be used
to create
ComparablePairs with custom combination of
comparable and
non comparable values.
- ComparableTriple<L,M,R> - Class in org.nerd4j.utils.tuple
-
Represents an immutable and comparable triple of values.
- ComparableTriple(L, Comparator<L>, M, Comparator<M>, R, Comparator<R>) - Constructor for class org.nerd4j.utils.tuple.ComparableTriple
-
Constructor with parameters.
- ComparableTriple.FinalBuilder<L,M> - Class in org.nerd4j.utils.tuple
-
Implementation of the
pattern builder intended to be used
to create
ComparableTriples with custom combination of
comparable and
non comparable values.
- ComparableTriple.MiddleBuilder<L> - Class in org.nerd4j.utils.tuple
-
Implementation of the
pattern builder intended to be used
to create
ComparableTriples with custom combination of
comparable and
non comparable values.
- Comparative<T> - Interface in org.nerd4j.utils.lang
-
The aim of this interface is to add
some convenience method to the
Comparable interface.
- compareTo(ComparablePair<L, R>) - Method in class org.nerd4j.utils.tuple.ComparablePair
- compareTo(ComparableTriple<L, M, R>) - Method in class org.nerd4j.utils.tuple.ComparableTriple
- config - Variable in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Configurations to be used to define the cache behavior.
- contains(T) - Method in class org.nerd4j.utils.math.Interval
-
Tells if this interval contains the given value.
- createStorage() - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Returns a new
spooling LinkedHashMap i.e
a
LinkedHashMap removing the oldest element
when the capacity has been reached.
- CU - Class in org.nerd4j.utils.math
-
This utility class provides some convenience methods
do deal with existing legacy classes that implement
Comparable.
- customClassName() - Method in interface org.nerd4j.utils.lang.ToString.Configuration
-
Custom text to use instead of the target class name.
- dataModelType() - Method in class org.nerd4j.utils.cache.CacheKey
-
Returns the type of the data model identified by this cache key.
- DataProvider<V> - Interface in org.nerd4j.utils.cache
-
Represents a provider able to retrieve the values
to cache in relation with the given key.
- DataProviderException - Exception in org.nerd4j.utils.cache
-
Represents an error occurred into the
DataProvider
during data retrieving operations.
- DataProviderException(String) - Constructor for exception org.nerd4j.utils.cache.DataProviderException
-
Constructs a new exception with the specified detail message.
- DataProviderException(Throwable) - Constructor for exception org.nerd4j.utils.cache.DataProviderException
-
Constructs a new exception with the specified cause and a detail message
of {@code (cause==null ?
- DataProviderException(String, Throwable) - Constructor for exception org.nerd4j.utils.cache.DataProviderException
-
Constructs a new exception with the specified detail message and cause.
- DEFAULT_CACHE_DURATION - Static variable in class org.nerd4j.utils.cache.CacheConfig
-
Default duration of a cache entry in milliseconds (60 minutes).
- DEFAULT_TOUCH_DURATION - Static variable in class org.nerd4j.utils.cache.CacheConfig
-
- DEFAULT_VERSION - Static variable in class org.nerd4j.utils.cache.CacheKey
-
Value to use if the user do not provide a custom version.
- disableAll(boolean) - Static method in class org.nerd4j.utils.cache.CacheConfig
-
Invoking this method with
true will disable all
SelfLoadingCache
instances in the system.
- disableAll(boolean) - Static method in interface org.nerd4j.utils.cache.SelfLoadingCache
-
Invoking this method with
true will disable all
SelfLoadingCache
instances in the system.
- disabledAll - Static variable in class org.nerd4j.utils.cache.CacheConfig
-
- disabledThis - Variable in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
- disableThis(boolean) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
- disableThis(boolean) - Method in interface org.nerd4j.utils.cache.SelfLoadingCache
-
- DIV - Static variable in class org.nerd4j.utils.math.BD
-
Performs the division of two
non-null BigDecimal values.
- div(BigDecimal, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given two
BigDecimal
values
a and
b, returns
a / b.
- div(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
a / b.
- div(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double value
a and a
BigDecimal value
b, returns
a / b.
- div(double, double) - Static method in class org.nerd4j.utils.math.BD
-
Given two
double values
a and
b,
returns a
BigDecimal that represents the value
a / b.
- DIV - Static variable in class org.nerd4j.utils.math.BI
-
Performs the division of two
non-null BigInteger values.
- div(BigInteger, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given two
BigInteger
values
a and
b, returns
a / b.
- div(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
a / b.
- div(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long value
a and a
BigInteger value
b, returns
a / b.
- div(long, long) - Static method in class org.nerd4j.utils.math.BI
-
Given two
long values
a and
b,
returns a
BigInteger that represents the value
a / b.
- doClear() - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Removes all keys and related entries from the cache.
- doClear() - Method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Removes all keys and related entries from the cache.
- doClear() - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Removes all keys and related entries from the cache.
- doGet(CacheKey) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Returns the cache entry related to the given key.
- doGet(CacheKey) - Method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Returns the cache entry related to the given key.
- doGet(CacheKey) - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Returns the cache entry related to the given key.
- doPut(CacheKey, CacheEntry<V>, long) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Binds the given entry to the given key and
put it into the underlying cache.
- doPut(CacheKey, CacheEntry<V>, long) - Method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Binds the given entry to the given key and
put it into the underlying cache.
- doPut(CacheKey, CacheEntry<V>, long) - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Binds the given entry to the given key and
put it into the underlying cache.
- doRemove(CacheKey) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Removes the given key and the related entry from the cache.
- doRemove(CacheKey) - Method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Removes the given key and the related entry from the cache.
- doRemove(CacheKey) - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Removes the given key and the related entry from the cache.
- doTouch(CacheKey, long) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Defers the expiration time of the cache entry related to the given key.
- doTouch(CacheKey, long) - Method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Defers the expiration time of the cache entry related to the given key.
- doTouch(CacheKey, long) - Method in class org.nerd4j.utils.cache.HeapCacheProvider
-
Defers the expiration time of the cache entry related to the given key.
- Emptily - Interface in org.nerd4j.utils.lang
-
A class implements this interface to tell that may has a content
or may be empty.
- empty(Emptily) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(String) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(Collection<?>) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(Map<?, ?>) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(V[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(boolean[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(char[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(byte[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(short[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(int[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(float[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(long[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(double[]) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null or empty.
- empty(Emptily) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(String) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(Collection<?>) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(Map<?, ?>) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(V[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(boolean[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(char[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(byte[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(short[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(int[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(float[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(long[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty(double[]) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null nor empty.
- empty() - Static method in class org.nerd4j.utils.math.Interval
-
Returns the singleton instance of the "empty set"
Interval.
- empty() - Static method in class org.nerd4j.utils.tuple.ComparablePair
-
- empty() - Static method in class org.nerd4j.utils.tuple.ComparableTriple
-
- empty() - Static method in class org.nerd4j.utils.tuple.Pair
-
Returns the singleton instance of an empty
Pair.
- empty() - Static method in class org.nerd4j.utils.tuple.Triple
-
Returns the singleton instance of an empty
Triple.
- EmptyCacheProvider<V> - Class in org.nerd4j.utils.cache
-
Dummy implementation of the
CacheProvider interface
that implements the design pattern
Empty Object.
- EmptyCacheProvider() - Constructor for class org.nerd4j.utils.cache.EmptyCacheProvider
-
Default constructor.
- eq(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is equal to the given object.
- eq(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a == b.
- eq(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a == b.
- eq(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a == b.
- eq(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a == b.
- eq(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a == b.
- eq(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a == b.
- eq(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a == b.
- eq(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a == b.
- eq(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a == b.
- eq(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a == b.
- equals(Object) - Method in class org.nerd4j.utils.cache.CacheConfig
- equals(Object) - Method in class org.nerd4j.utils.cache.CacheEntry
- equals(Object) - Method in class org.nerd4j.utils.cache.CacheKey
- equals(Object) - Method in class org.nerd4j.utils.cache.CacheKey.Prototype
- Equals - Class in org.nerd4j.utils.lang
-
- equals(Object) - Method in class org.nerd4j.utils.math.Interval
- equals(Object) - Method in class org.nerd4j.utils.math.PrimeSieve
- equals(Object) - Method in class org.nerd4j.utils.tuple.Pair
- equals(Object) - Method in class org.nerd4j.utils.tuple.Triple
- evict(CacheKey) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
- evict(CacheKey) - Method in interface org.nerd4j.utils.cache.SelfLoadingCache
-
- executorService - Static variable in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
The
ExecutorService to use to insert or update
cache entries in an asynchronous way.
- ge(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is greater or equal than the given object.
- ge(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a >= b.
- ge(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a >= b.
- ge(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a >= b.
- ge(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a >= b.
- ge(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a >= b.
- ge(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a >= b.
- ge(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a >= b.
- ge(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a >= b.
- ge(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a >= b.
- ge(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a >= b.
- get(CacheKey) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Returns the cache entry related to the given key.
- get(CacheKey, DataProvider<V>) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Returns the value related to the given key.
- get(CacheKey) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Returns the value from the cache if available
and null otherwise.
- get(CacheKey) - Method in interface org.nerd4j.utils.cache.CacheProvider
-
Returns the cache entry related to the given key.
- get() - Static method in class org.nerd4j.utils.cache.EmptyCacheProvider
-
- get(CacheKey, DataProvider<V>) - Method in interface org.nerd4j.utils.cache.SelfLoadingCache
-
Returns the value related to the given key.
- get() - Static method in class org.nerd4j.utils.math.PrimeSieve
-
Returns a new
PrimeSieve with the default limits:
Greatest computable value:
412316859839
Memory occupation upper bound:
16GB
- getCacheDuration() - Method in class org.nerd4j.utils.cache.CacheConfig
-
Returns the duration of a cache entry in milliseconds.
- getCurrentMemoryConsumptionInBytes() - Method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the amount of memory, in bytes, currently used by this object.
- getDefault() - Static method in class org.nerd4j.utils.cache.CacheConfig
-
- getEntry(V, long) - Method in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Returns a new cache entry with the given value that will
expire after the given amount of milliseconds
- getExpiration() - Method in class org.nerd4j.utils.cache.CacheEntry
-
Returns the instant in time when the cache entry expires.
- getGreatestComputableValue(long) - Static method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the the greatest value that can be computed
with the given amount of memory expressed in bytes.
- getGreatestComputedValue() - Method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the greatest value computed so far.
- getGreatestPrimeLessEqual(long) - Method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the greatest prime number less or equal than the provided value.
- getInf() - Method in class org.nerd4j.utils.math.Interval
-
Returns the value of the inferior limit
if it is defined.
- getKey() - Method in class org.nerd4j.utils.tuple.Pair
-
Returns the left element of the pair.
- getLeft() - Method in class org.nerd4j.utils.tuple.Pair
-
Returns the left element of the pair.
- getLeft() - Method in class org.nerd4j.utils.tuple.Triple
-
Returns the left element of the triple.
- getLeftComparator() - Method in class org.nerd4j.utils.tuple.ComparablePair
-
Returns the comparator for values of type <L>.
- getLeftComparator() - Method in class org.nerd4j.utils.tuple.ComparableTriple
-
Returns the comparator for values of type <L>.
- getMaxValue() - Method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the greatest value computable by this instance.
- getMemoryConsumptionInBytes(long) - Static method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the maximum amount of memory (in bytes) needed
to compute all primes less or equal than the given upper limit.
- getMiddle() - Method in class org.nerd4j.utils.tuple.Triple
-
Returns the middle element of the triple.
- getMiddleComparator() - Method in class org.nerd4j.utils.tuple.ComparableTriple
-
Returns the comparator for values of type <M>.
- getRight() - Method in class org.nerd4j.utils.tuple.Pair
-
Returns the right element of the pair.
- getRight() - Method in class org.nerd4j.utils.tuple.Triple
-
Returns the right element of the triple.
- getRightComparator() - Method in class org.nerd4j.utils.tuple.ComparablePair
-
Returns the comparator for values of type <R>.
- getRightComparator() - Method in class org.nerd4j.utils.tuple.ComparableTriple
-
Returns the comparator for values of type <R>.
- getSmallestPrimeGreaterEqual(long) - Method in class org.nerd4j.utils.math.PrimeSieve
-
Returns the smallest prime number greater or equal than the provided value.
- getSup() - Method in class org.nerd4j.utils.math.Interval
-
Returns the value of the superior limit
if it is defined.
- getTouchDuration() - Method in class org.nerd4j.utils.cache.CacheConfig
-
Returns the number of milliseconds to defer
a cache entry expiration to, during update.
- getValue() - Method in class org.nerd4j.utils.cache.CacheEntry
-
Returns the cached value.
- getValue() - Method in class org.nerd4j.utils.tuple.Pair
-
Returns the right element of the pair.
- gt(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is greater than the given object.
- gt(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a > b.
- gt(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a > b.
- gt(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a > b.
- gt(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a > b.
- gt(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a > b.
- gt(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a > b.
- gt(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a > b.
- gt(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a > b.
- gt(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a > b.
- gt(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a > b.
- ifInstancesOf(Class<T>, Object, Object, BiFunction<T, T, Boolean>) - Static method in class org.nerd4j.utils.lang.Equals
-
This method is intended to be used inside a
Object.equals(Object)
method, to check if the object to compare is not
null and if both
objects are instances of the given type.
- ifSameClass(T, Object, Function<T, Object>...) - Static method in class org.nerd4j.utils.lang.Equals
-
This method is intended to be used inside a
Object.equals(Object)
method, to check if the object to compare is not
null and if it has
the same class as
this object.
- includes(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Tells if this interval includes the given one.
- insert(CacheKey, DataProvider<V>) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Inserts the given key and the related value into the cache.
- intersect(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Returns an interval containing only those
elements that belongs to both this interval
and the given one.
- Interval<T extends Comparable<T>> - Class in org.nerd4j.utils.math
-
In mathematics, given a set S and a total order relation <=
over the elements of S, we define an interval I as a
subset of S such that: given x,y in I such that x <= y we have
that for each s in S if x <= s <= y then s belongs to I.
- Interval() - Constructor for class org.nerd4j.utils.math.Interval
-
Default constructor.
- Interval(IntervalLimit<T>, IntervalLimit<T>) - Constructor for class org.nerd4j.utils.math.Interval
-
Constructor with parameters.
- Is - Class in org.nerd4j.utils.lang
-
This class consists of static utility methods intended
to operate boolean checks on objects.
- isAsyncInsert() - Method in class org.nerd4j.utils.cache.CacheConfig
-
Tells if the insert of a new entry in the cache
should be done asynchronously.
- isAsyncUpdate() - Method in class org.nerd4j.utils.cache.CacheConfig
-
Tells if the update of an existing entry in the cache
should be done asynchronously.
- isClosed() - Method in class org.nerd4j.utils.math.Interval
-
Tells if both the inferior limit and
the superior limit are closed.
- isClosedInf() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the inferior limit is closed.
- isClosedSup() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the superior limit is closed.
- isConsecutiveTo(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Tells if this interval is consecutive to the given one.
- isDisjointFrom(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
Tells if this interval is disjoint frp, the given one.
- isEmpty() - Method in interface org.nerd4j.utils.lang.Emptily
-
Returns true if this object is empty.
- isEmpty() - Method in class org.nerd4j.utils.math.Interval
-
Returns true if this object is empty.
- isEmpty() - Method in class org.nerd4j.utils.tuple.Pair
-
Returns true if this object is empty.
- isEmpty() - Method in class org.nerd4j.utils.tuple.Triple
-
Returns true if this object is empty.
- isEmptySet() - Method in class org.nerd4j.utils.math.Interval
-
An interval is considered to be empty
if it is the empty set or if it is a
single point open interval in the form
(x,x).
- isExpired() - Method in class org.nerd4j.utils.cache.CacheEntry
-
Tells if the cache entry is expired.
- IsNot - Class in org.nerd4j.utils.lang
-
This class consists of static utility methods intended
to operate boolean checks on objects.
- isOpen() - Method in class org.nerd4j.utils.math.Interval
-
Tells if both the inferior limit and
the superior limit are open.
- isOpenInf() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the inferior limit is open.
- isOpenSup() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the superior limit is open.
- isPrime(long) - Method in class org.nerd4j.utils.math.PrimeSieve
-
Tells if the given value is a prime number.
- isStrictlyConsecutiveTo(Interval<T>) - Method in class org.nerd4j.utils.math.Interval
-
- isThrowCacheProviderExceptions() - Method in class org.nerd4j.utils.cache.CacheConfig
-
- isUnbounded() - Method in class org.nerd4j.utils.math.Interval
-
Tells if both the inferior limit and
the superior limit are unbounded.
- isUnboundedInf() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the inferior limit is unbounded.
- isUnboundedSup() - Method in class org.nerd4j.utils.math.Interval
-
Tells if the superior limit is unbounded.
- le(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is less or equal than the given object.
- le(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a <= b.
- le(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a <= b.
- le(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a <= b.
- le(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a <= b.
- le(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a <= b.
- le(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a <= b.
- le(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a <= b.
- le(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a <= b.
- le(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a <= b.
- le(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a <= b.
- left - Variable in class org.nerd4j.utils.tuple.Pair
-
The left element of the pair.
- left - Variable in class org.nerd4j.utils.tuple.Triple
-
The left element of the triple.
- like(ToString.Printer) - Method in interface org.nerd4j.utils.lang.ToString.Configurator
-
- likeEclipse() - Method in interface org.nerd4j.utils.lang.ToString.Configurator
-
Creates an output of the method
Object.toString()
like the one generated by the
Eclipse IDE.
- likeFunction() - Method in interface org.nerd4j.utils.lang.ToString.Configurator
-
Creates an output of the method
Object.toString()
in the form of a function, where the function name is the
target class name and the given fields are listed as the
function arguments.
- likeIntellij() - Method in interface org.nerd4j.utils.lang.ToString.Configurator
-
Creates an output of the method
Object.toString()
like the one generated by the
IntelliJ IDE.
- likeTuple() - Method in interface org.nerd4j.utils.lang.ToString.Configurator
-
Creates an output of the method
Object.toString()
in the form of a tuple, optionally preceded by the
class name.
- load(CacheKey, DataProvider<V>) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
- loadAndPut(String, CacheKey, DataProvider<V>) - Method in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Performs the loading of te data related to the given
key and puts the <key-value> pair into the cache.
- logger - Static variable in class org.nerd4j.utils.cache.AbstractCacheProvider
-
Logging system.
- logger - Static variable in class org.nerd4j.utils.cache.AbstractSelfLoadingCache
-
Logging system.
- logger - Static variable in class org.nerd4j.utils.cache.EmptyCacheProvider
-
Logging system.
- logger - Static variable in class org.nerd4j.utils.cache.HeapCacheProvider
-
Logging system.
- lt(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is less than the given object.
- lt(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a < b.
- lt(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if
a < b.
- lt(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a < b.
- lt(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if
a < b.
- lt(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a < b.
- lt(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if
a < b.
- lt(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a < b.
- lt(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if
a < b.
- lt(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a < b.
- lt(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if a < b.
- name - Variable in class org.nerd4j.utils.lang.ToString.Configuration.Field
-
The name of the field.
- ne(T) - Method in interface org.nerd4j.utils.lang.Comparative
-
Tells if this object is not equal to the given object.
- ne(BigDecimal, double) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if {@code a !
- ne(BigDecimal, double, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
BigDecimal
value
a and a
double value
b, returns
true
if {@code a !
- ne(double, BigDecimal) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if {@code a !
- ne(double, BigDecimal, boolean) - Static method in class org.nerd4j.utils.math.BD
-
This is a
null-safe method that, given a
double
value
a and a
BigDecimal value
b,
returns
true if {@code a !
- ne(BigInteger, long) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if {@code a !
- ne(BigInteger, long, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
BigInteger
value
a and a
long value
b, returns
true
if {@code a !
- ne(long, BigInteger) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if {@code a !
- ne(long, BigInteger, boolean) - Static method in class org.nerd4j.utils.math.BI
-
This is a
null-safe method that, given a
long
value
a and a
BigInteger value
b,
returns
true if {@code a !
- ne(C, C) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if {@code a !
- ne(C, C, boolean) - Static method in class org.nerd4j.utils.math.CU
-
This is a null-safe method that, given two comparable
values a and b, tells if {@code a !
- nonBlank(String) - Static method in class org.nerd4j.utils.lang.Require
-
- nonBlank(String, String) - Static method in class org.nerd4j.utils.lang.Require
-
- nonBlank(String, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(Emptily) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
Emptily reference is not
null nor empty.
- nonEmpty(Emptily, String) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(Emptily, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
String reference is not
null nor empty.
- nonEmpty(String, String) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(String, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(C) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
Collection reference is not
null nor empty.
- nonEmpty(C, String) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(C, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
- nonEmpty(M) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
Map reference is not
null nor empty.
- nonEmpty(M, String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
Map reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(M, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
Map reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(V[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(V[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(V[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(boolean[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(boolean[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(boolean[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(char[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(char[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(char[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(byte[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(byte[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(byte[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(short[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(short[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(short[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(int[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(int[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(int[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(float[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(float[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(float[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(long[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(long[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(long[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(double[]) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified array reference is not null nor empty.
- nonEmpty(double[], String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonEmpty(double[], Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified
array reference is not
null nor empty
and throws a customized
RequirementFailure if it is.
- nonNull(V) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified object reference is not null.
- nonNull(V, String) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified object reference is not
null and
throws a customized
RequirementFailure if it is.
- nonNull(V, Supplier<String>) - Static method in class org.nerd4j.utils.lang.Require
-
Checks that the specified object reference is not
null and
throws a customized
RequirementFailure if it is.
- NoSuchIntervalException - Exception in org.nerd4j.utils.math
-
- NoSuchIntervalException(Interval<?>, Interval<?>, String) - Constructor for exception org.nerd4j.utils.math.NoSuchIntervalException
-
Constructs a new exception to report a failed union between
the two provided intervals.
- NULL(Object) - Static method in class org.nerd4j.utils.lang.Is
-
Checks if the given value is null.
- NULL(Object) - Static method in class org.nerd4j.utils.lang.IsNot
-
Checks if the given value is not null.
- nullFirstNaturalOrderComparator() - Static method in class org.nerd4j.utils.math.CU
-
Returns a null-safe natural ordered comparator
considering null to be less than non-null.
- nullLastNaturalOrderComparator() - Static method in class org.nerd4j.utils.math.CU
-
Returns a null-safe natural ordered comparator
considering null to be greater than non-null.
- nullSafeNaturalOrderComparator(boolean) - Static method in class org.nerd4j.utils.math.CU
-
Returns a null-safe natural ordered comparator
considering null to be less than or greater than
non-null based on the value of the parameter.