Package org.cactoos.scalar
Class LengthOf
- java.lang.Object
-
- org.cactoos.scalar.ScalarEnvelope<Long>
-
- org.cactoos.scalar.LengthOf
-
public final class LengthOf extends ScalarEnvelope<Long>
Length.There is no thread-safety guarantee.
- Since:
- 0.1
-
-
Constructor Detail
-
LengthOf
public LengthOf(Iterable<?> items)
Ctor.- Parameters:
items
- The array
-
LengthOf
public LengthOf(Text text)
Ctor. Character-length of Text.- Parameters:
text
- The input
-
LengthOf
public LengthOf(Input input)
Ctor.- Parameters:
input
- The input
-
LengthOf
public LengthOf(Input input, int max)
Ctor.- Parameters:
input
- The inputmax
- Buffer size
-
-