Class NumberStream
java.lang.Object
java.lang.Number
com.stuypulse.stuylib.streams.numbers.NumberStream
- All Implemented Interfaces:
IStream
,Serializable
,DoubleSupplier
A number which reads from a streams.
Useful for filtering streams (including SmartNumbers) and converting them back into Numbers.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
NumberStream
Create a number stream given a stream- Parameters:
stream
- IStream to return through number classes
-
-
Method Details
-
get
public double get() -
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
- Returns:
- value from stream
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
- Returns:
- value from stream as float
-
intValue
public int intValue() -
longValue
public long longValue()
-