Package de.xima.fc.common.graphdot
Class LengthList<L extends Length>
- java.lang.Object
-
- de.xima.fc.common.graphdot.LengthList<L>
-
- Type Parameters:
L- Type of the length values in this list.
- All Implemented Interfaces:
Serializable,CharSequence
public final class LengthList<L extends Length> extends Object
A list of length values.2.55:1.39:0.84
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLengthList.LengthListFactory<L extends Length>A factory for creatingLengthListfrom values in a given unit.
-
Constructor Summary
Constructors Constructor Description LengthList(List<L> lengths)Creates a new list of lengths.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default charcharAt(int index)default IntStreamchars()default IntStreamcodePoints()booleanequals(Object obj)List<L>getLengths()inthashCode()default intlength()static <L extends Length>
LengthList<L>of(L... lengths)Creates a double list from the given doubles.default CharSequencesubSequence(int start, int end)static LengthList.LengthListFactory<Length.Inches>toInches()Gets a factory for creating length lists from inch values.static LengthList.LengthListFactory<Length.Points>toPoints()Gets a factory for creating length lists from point values.StringtoString()
-
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence
-
of
@SafeVarargs public static <L extends Length> LengthList<L> of(L... lengths)
Creates a double list from the given doubles.- Parameters:
lengths- Length values to put into a list.- Returns:
- A double list with the given doubles.
-
toInches
public static LengthList.LengthListFactory<Length.Inches> toInches()
Gets a factory for creating length lists from inch values.- Returns:
- A factory for creating length lists from inch values.
-
toPoints
public static LengthList.LengthListFactory<Length.Points> toPoints()
Gets a factory for creating length lists from point values.- Returns:
- A factory for creating length lists from point values.
-
charAt
public default char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
chars
public default IntStream chars()
- Specified by:
charsin interfaceCharSequence
-
codePoints
public default IntStream codePoints()
- Specified by:
codePointsin interfaceCharSequence
-
length
public default int length()
- Specified by:
lengthin interfaceCharSequence
-
subSequence
public default CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
-