Class Percentage
java.lang.Object
com.github.weisj.jsvg.geometry.size.Percentage
- All Implemented Interfaces:
PercentageValue, Comparable<Percentage>
@Immutable
public final class Percentage
extends Object
implements Comparable<Percentage>, PercentageValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull Percentagestatic final @NotNull Percentagestatic final @NotNull Percentagestatic final floatprivate final floatstatic final @NotNull Percentage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull Percentage o) booleanfloatget(@NotNull MeasureContext context) inthashCode()booleanstatic booleanisSpecified(float value) booleanstatic booleanisUnspecified(float value) @NotNull PercentageValuemultiply(@NotNull PercentageValue other) @NotNull PercentageorElseIfUnspecified(float value) toString()floatvalue()
-
Field Details
-
UNSPECIFIED_RAW
public static final float UNSPECIFIED_RAW- See Also:
-
UNSPECIFIED
-
ZERO
-
ONE
-
INHERITED
-
value
private final float value
-
-
Constructor Details
-
Percentage
public Percentage(float value)
-
-
Method Details
-
isUnspecified
public static boolean isUnspecified(float value) -
isSpecified
public static boolean isSpecified(float value) -
value
public float value() -
get
- Specified by:
getin interfacePercentageValue
-
multiply
- Specified by:
multiplyin interfacePercentageValue
-
isUnspecified
public boolean isUnspecified() -
isSpecified
public boolean isSpecified() -
orElseIfUnspecified
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Percentage>
-