Uses of Interface
org.cactoos.Scalar
-
Packages that use Scalar Package Description org.cactoos.experimental We are running experiments with the APIs provided in this package.org.cactoos.func Functions.org.cactoos.io Input/Output.org.cactoos.iterable Iterables.org.cactoos.iterator Iterators.org.cactoos.number Numbers.org.cactoos.proc Procedures.org.cactoos.scalar Scalars.org.cactoos.text Text.org.cactoos.time Time. -
-
Uses of Scalar in org.cactoos.experimental
Constructors in org.cactoos.experimental with parameters of type Scalar Constructor Description Threads(int threads, Duration timeout, Scalar<? extends T>... tasks)
Ctor.Threads(int threads, Scalar<? extends T>... tasks)
Ctor.Threads(ExecutorService exc, Duration timeout, Scalar<? extends T>... tasks)
Ctor.Threads(ExecutorService exc, Scalar<? extends T>... tasks)
Ctor.Constructor parameters in org.cactoos.experimental with type arguments of type Scalar Constructor Description Threads(int threads, Iterable<? extends Scalar<? extends T>> tasks)
Ctor.Threads(int threads, Duration timeout, Iterable<? extends Scalar<? extends T>> tasks)
Ctor.Threads(ExecutorService exc, Iterable<? extends Scalar<? extends T>> tasks)
Ctor.Threads(ExecutorService exc, Duration timeout, Iterable<? extends Scalar<? extends T>> tasks)
Ctor. -
Uses of Scalar in org.cactoos.func
Constructors in org.cactoos.func with parameters of type Scalar Constructor Description BiFuncOf(Scalar<Z> scalar)
Ctor.FuncOf(Scalar<? extends Y> scalar)
Ctor.Constructor parameters in org.cactoos.func with type arguments of type Scalar Constructor Description Flattened(Func<X,Scalar<Y>> sclr)
Ctor. -
Uses of Scalar in org.cactoos.io
Classes in org.cactoos.io that implement Scalar Modifier and Type Class Description class
TempFile
A temporary file.class
TempFolder
A temporary folder.Constructors in org.cactoos.io with parameters of type Scalar Constructor Description InputOf(Scalar<URL> scalar)
Ctor.TempFile(Scalar<Path> dir, String prefix, String suffix)
Ctor.TempFile(Scalar<Path> dir, Text prefix, Text suffix)
Ctor. -
Uses of Scalar in org.cactoos.iterable
Constructors in org.cactoos.iterable with parameters of type Scalar Constructor Description IterableOf(Scalar<? extends Iterator<? extends X>> sclr)
Ctor.Repeated(int total, Scalar<? extends T> elm)
Ctor.Constructor parameters in org.cactoos.iterable with type arguments of type Scalar Constructor Description Filtered(Iterable<? extends X> src, Func<? super X,Scalar<Boolean>> fnc)
Ctor. -
Uses of Scalar in org.cactoos.iterator
Constructors in org.cactoos.iterator with parameters of type Scalar Constructor Description Endless(Scalar<? extends T> scalar)
Ctor.Repeated(int max, Scalar<? extends T> scalar)
Ctor.Constructor parameters in org.cactoos.iterator with type arguments of type Scalar Constructor Description Filtered(Iterator<? extends X> src, Func<? super X,Scalar<Boolean>> fnc)
Ctor. -
Uses of Scalar in org.cactoos.number
Constructors in org.cactoos.number with parameters of type Scalar Constructor Description NumberOfScalars(Scalar<? extends Number> nbr)
Ctor.NumberOfScalars(Scalar<Long> lnm, Scalar<Integer> inm, Scalar<Float> fnm, Scalar<Double> dnm)
Ctor. -
Uses of Scalar in org.cactoos.proc
Constructors in org.cactoos.proc with parameters of type Scalar Constructor Description CallableOf(Scalar<?> scalar)
Ctor.RunnableOf(Scalar<?> scalar)
Ctor. -
Uses of Scalar in org.cactoos.scalar
Classes in org.cactoos.scalar that implement Scalar Modifier and Type Class Description class
And
Logical conjunction.class
AndInThreads
Logical conjunction, in multiple threads.class
AndWithIndex
Logical conjunction, with index.class
Binary
Binary operation.class
BoolOf
Text asBoolean
.class
Checked<T,E extends Exception>
Scalar that wraps an original checked exception thrown by the origin using the given wrapping function.class
Constant<T>
Constant value.class
Equality<T extends Bytes>
Equality.class
Equals<R,T extends Comparable<R>>
Equals.class
EqualsNullable
Checks 2 objects for equality.class
False
Logical false.class
FirstOf<T>
Find first element in a list that satisfies specified condition.class
Flattened<X>
class
Folded<X,T>
Iterable, which elements are "folded" through the func.class
HashCode
Object HashCode.class
HighestOf<T extends Comparable<? super T>>
Find the highest item.class
InheritanceLevel
The number of superclasses between base and derived class.class
IoChecked<T>
Scalar that doesn't throwException
, but throwsIOException
instead.class
ItemAt<T>
Element from position inIterable
or fallback value if iterable doesn't have this position.class
LengthOf
Length.class
LowestOf<T extends Comparable<? super T>>
Find the lowest item.class
Mapped<U>
class
NoNulls<T>
Scalar check for no nulls.class
Not
Logical negative.class
Or
Logical disjunction.class
PropertiesOf
Map asProperties
.class
Reduced<T>
Reduces iterable via BiFunc.class
Repeated<X>
Scalar that runs repeatedly for a number of times.class
Retry<T>
Func that will try a few times before throwing an exception.class
ScalarEnvelope<T>
Envelope for Scalar.class
ScalarOf<T>
ScalarOf.class
ScalarOfSupplier<T>
ScalarOfSupplier.class
ScalarWithFallback<T>
Scalar with fallbacks that enable it to recover from errors.class
Solid<T>
Cached and synchronized version of a Scalar.class
Sticky<T>
Cached version of a Scalar.class
Synced<T>
Scalar that is thread-safe.class
Ternary<T>
Ternary operation.class
True
Logical truth.class
Unchecked<T>
Scalar that doesn't throw checkedException
.class
Xor
Logical exclusive or.Constructors in org.cactoos.scalar with parameters of type Scalar Constructor Description And(Scalar<Boolean>... scalar)
Ctor.AndInThreads(ExecutorService svc, Scalar<Boolean>... src)
Ctor.AndInThreads(Scalar<Boolean>... src)
Ctor.Binary(Scalar<Boolean> condition, Runnable consequent)
Ctor.CallableOf(Scalar<? extends T> slr)
Ctor.Checked(Scalar<? extends T> scalar, Func<? super Exception,? extends E> fnc)
Ctor.Equals(Scalar<? extends T> source, Scalar<? extends R> compared)
Ctor.EqualsNullable(Object first, Scalar<? extends Object> second)
Accepts object to compare with and scalar to get value from.EqualsNullable(Scalar<? extends Object> first, Object second)
Accepts scalar to get value from and object to compare with.EqualsNullable(Scalar<? extends Object> first, Scalar<? extends Object> second)
Accepts 2 scalars to get get values from.FirstOf(Iterable<? extends T> src, Scalar<? extends T> fbck)
Constructor with default condition (always `true`).FirstOf(Func<? super T,Boolean> cond, Iterable<? extends T> src, Scalar<? extends T> fbck)
Constructor.Flattened(Scalar<? extends Scalar<? extends X>> sclr)
Ctor.HighestOf(Scalar<? extends T>... scalars)
Ctor.IoChecked(Scalar<? extends T> scalar)
Ctor.LowestOf(Scalar<? extends T>... scalars)
Ctor.Mapped(Func<? super T,? extends U> func, Scalar<? extends T> scalar)
Ctor.NoNulls(Scalar<? extends T> sclr)
Ctor.Not(Scalar<Boolean> scalar)
Ctor.Or(Scalar<Boolean>... scalar)
Ctor.Repeated(Scalar<? extends X> scalar, int times)
Ctor.Retry(Scalar<? extends T> scalar)
Ctor.Retry(Scalar<? extends T> scalar, int attempts)
Ctor.Retry(Scalar<? extends T> scalar, int attempts, Duration wait)
Ctor.Retry(Scalar<? extends T> scalar, Duration wait)
Ctor.Retry(Scalar<? extends T> scalar, Func<Integer,Boolean> exit)
Ctor.Retry(Scalar<? extends T> scalar, Func<Integer,Boolean> exit, Duration wait)
Ctor.ScalarEnvelope(Scalar<? extends T> scalar)
Ctor.ScalarWithFallback(Scalar<? extends T> origin, Iterable<? extends Fallback<? extends T>> fbks)
Ctor.ScalarWithFallback(Scalar<? extends T> origin, Fallback<? extends T>... fbks)
Ctor.Solid(Scalar<? extends T> origin)
Ctor.Sticky(Scalar<? extends T> scalar)
Ctor.Synced(Scalar<? extends T> src)
Ctor.Synced(Scalar<? extends T> scalar, Object lock)
Ctor.Ternary(boolean cnd, Scalar<? extends T> cons, Scalar<? extends T> alter)
Ctor.Ternary(Scalar<? extends X> input, Func<? super X,Boolean> cnd, Func<? super X,? extends T> cons, Func<? super X,? extends T> alter)
Ctor.Ternary(Scalar<Boolean> cnd, Scalar<? extends T> cons, Scalar<? extends T> alter)
Ctor.Ternary(Scalar<Boolean> cnd, T cons, T alter)
Ctor.Unchecked(Scalar<? extends T> scalar)
Ctor.Xor(Scalar<Boolean>... scalar)
Ctor.Constructor parameters in org.cactoos.scalar with type arguments of type Scalar Constructor Description And(Iterable<? extends Scalar<Boolean>> iterable)
Ctor.AndInThreads(Iterable<? extends Scalar<Boolean>> src)
Ctor.AndInThreads(ExecutorService svc, Iterable<? extends Scalar<Boolean>> src)
Ctor.Flattened(Scalar<? extends Scalar<? extends X>> sclr)
Ctor.HighestOf(Iterable<? extends Scalar<? extends T>> iterable)
Ctor.LowestOf(Iterable<? extends Scalar<? extends T>> iterable)
Ctor.Or(Iterable<? extends Scalar<Boolean>> iterable)
Ctor.Reduced(BiFunc<? super T,? super T,? extends T> reduce, Iterable<? extends Scalar<? extends T>> scalars)
Ctor.Xor(Iterable<? extends Scalar<Boolean>> iterable)
Ctor. -
Uses of Scalar in org.cactoos.text
Classes in org.cactoos.text that implement Scalar Modifier and Type Class Description class
Contains
Tests if this Text contains other Text.class
EndsWith
Tests if this Text ends with the specified suffix.class
IsBlank
Determines if text is blank (consists of spaces) or not.class
IsEmpty
Determines if text is empty or not.class
StartsWith
Determines if text starts with a given prefix.Constructors in org.cactoos.text with parameters of type Scalar Constructor Description Flattened(Scalar<? extends Text> sclr)
Ctor.Randomized(Iterable<Character> chrs, Scalar<Integer> len)
Ctor.Randomized(Iterable<Character> itr, Scalar<Integer> len, Random rnd)
Ctor.Randomized(Scalar<Integer> len)
Ctor.Randomized(Scalar<Integer> len, Character... chrs)
Ctor.Replaced(Text text, Scalar<Pattern> regex, Func<? super Matcher,? extends CharSequence> func)
Ctor.Sub(Text text, int strt, Scalar<Integer> finish)
Ctor.Sub(Text text, Scalar<Integer> strt)
Ctor.Sub(Text text, Scalar<Integer> strt, Func<? super String,Integer> finish)
Ctor.Sub(Text text, Scalar<Integer> strt, Scalar<Integer> finish)
Ctor.TextOf(Scalar<? extends CharSequence> scalar)
Ctor.TextOfScalar(Scalar<? extends CharSequence> scalar)
Ctor. -
Uses of Scalar in org.cactoos.time
Classes in org.cactoos.time that implement Scalar Modifier and Type Class Description class
DateOf
Parser forDate
instances.class
Iso
The formatter.class
LocalDateTimeOf
Parser forLocalDateTime
instances.class
OffsetDateTimeOf
Parser forOffsetDateTime
instances.class
ZonedDateTimeOf
Parser forZonedDateTime
instances.
-