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 class
LengthList.LengthListFactory<L extends Length>
A factory for creatingLengthList
from 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 char
charAt(int index)
default IntStream
chars()
default IntStream
codePoints()
boolean
equals(Object obj)
List<L>
getLengths()
int
hashCode()
default int
length()
static <L extends Length>
LengthList<L>of(L... lengths)
Creates a double list from the given doubles.default CharSequence
subSequence(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.String
toString()
-
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in 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:
charAt
in interfaceCharSequence
-
chars
public default IntStream chars()
- Specified by:
chars
in interfaceCharSequence
-
codePoints
public default IntStream codePoints()
- Specified by:
codePoints
in interfaceCharSequence
-
length
public default int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public default CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-