Package org.cactoos
Interface Scalar<T>
-
- Type Parameters:
T
- Type of result
- All Known Implementing Classes:
And
,AndInThreads
,AndWithIndex
,Binary
,BoolOf
,Checked
,Constant
,Contains
,DateOf
,EndsWith
,Equality
,Equals
,EqualsNullable
,False
,FirstOf
,Flattened
,Folded
,HashCode
,HighestOf
,InheritanceLevel
,IoChecked
,IsBlank
,IsEmpty
,Iso
,ItemAt
,LengthOf
,LocalDateTimeOf
,LowestOf
,Mapped
,NoNulls
,Not
,OffsetDateTimeOf
,Or
,PropertiesOf
,Reduced
,Repeated
,Retry
,ScalarEnvelope
,ScalarOf
,ScalarOfSupplier
,ScalarWithFallback
,Solid
,StartsWith
,Sticky
,Synced
,TempFile
,TempFolder
,Ternary
,True
,Unchecked
,Xor
,ZonedDateTimeOf
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Scalar<T>
Scalar.If you don't want to have any checked exceptions being thrown out of your
Scalar
, you can useUnchecked
decorator. Also you may tryIoChecked
.If you want to cache the result of the
Scalar
and make sure it doesn't calculate anything twice, you can useSticky
decorator.There is no thread-safety guarantee.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
value()
Convert it to the value.
-