Package org.cactoos.scalar
Scalars.
- Since:
- 0.12
-
Class Summary Class Description And Logical conjunction.AndInThreads Logical conjunction, in multiple threads.AndWithIndex Logical conjunction, with index.Binary Binary operation.BoolOf Text asBoolean
.CallableEnvelope<T> Envelope for Callable.CallableOf<T> Func asCallable
.Checked<T,E extends Exception> Scalar that wraps an original checked exception thrown by the origin using the given wrapping function.Constant<T> Constant value.Equality<T extends Bytes> Equality.Equals<R,T extends Comparable<R>> Equals.EqualsNullable Checks 2 objects for equality.False Logical false.FirstOf<T> Find first element in a list that satisfies specified condition.Flattened<X> Folded<X,T> Iterable, which elements are "folded" through the func.HashCode Object HashCode.HighestOf<T extends Comparable<? super T>> Find the highest item.InheritanceLevel The number of superclasses between base and derived class.IoChecked<T> Scalar that doesn't throwException
, but throwsIOException
instead.ItemAt<T> Element from position inIterable
or fallback value if iterable doesn't have this position.LengthOf Length.LowestOf<T extends Comparable<? super T>> Find the lowest item.Mapped<U> NoNulls<T> Scalar check for no nulls.Not Logical negative.Or Logical disjunction.PropertiesOf Map asProperties
.Reduced<T> Reduces iterable via BiFunc.Repeated<X> Scalar that runs repeatedly for a number of times.Retry<T> Func that will try a few times before throwing an exception.ScalarEnvelope<T> Envelope for Scalar.ScalarOf<T> ScalarOf.ScalarOfSupplier<T> ScalarOfSupplier.ScalarWithFallback<T> Scalar with fallbacks that enable it to recover from errors.Solid<T> Cached and synchronized version of a Scalar.Sticky<T> Cached version of a Scalar.Synced<T> Scalar that is thread-safe.Ternary<T> Ternary operation.True Logical truth.Unchecked<T> Scalar that doesn't throw checkedException
.Xor Logical exclusive or.