Class AttributeUtil
java.lang.Object
com.github.weisj.jsvg.util.AttributeUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanarrayContains(T @NotNull [] arr, T element) static <T> TnotNullOrElse(T value, T defaultValue) static @NotNull AttributeUtil.AxisPairparseAxisPair(@NotNull AttributeNode node, @NotNull String xAttr, @NotNull String yAttr, @NotNull Length fallback, Inherited inherited, @NotNull Function<@NotNull LengthValue, @Nullable LengthValue> validator) static <T> T @Nullable []toNonnullArray(T... values)
-
Constructor Details
-
AttributeUtil
private AttributeUtil()
-
-
Method Details
-
toNonnullArray
-
notNullOrElse
@NotNull public static <T> T notNullOrElse(@Nullable T value, @NotNull T defaultValue) -
parseAxisPair
@NotNull public static @NotNull AttributeUtil.AxisPair parseAxisPair(@NotNull @NotNull AttributeNode node, @NotNull @NotNull String xAttr, @NotNull @NotNull String yAttr, @NotNull @NotNull Length fallback, Inherited inherited, @NotNull @NotNull Function<@NotNull LengthValue, @Nullable LengthValue> validator) -
arrayContains
@Contract(pure=true) public static <T> boolean arrayContains(T @NotNull [] arr, T element)
-