- java.lang.Object
-
- com.github.weisj.jsvg.util.AttributeUtil
-
public final class AttributeUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributeUtil.AxisPair
-
Constructor Summary
Constructors Modifier Constructor Description private
AttributeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> boolean
arrayContains(T @NotNull [] arr, T element)
static <T> T
notNullOrElse(T value, T defaultValue)
static @NotNull AttributeUtil.AxisPair
parseAxisPair(@NotNull AttributeNode node, @NotNull java.lang.String xAttr, @NotNull java.lang.String yAttr, @NotNull Length fallback, Inherited inherited, @NotNull java.util.function.Function<@NotNull LengthValue,@Nullable LengthValue> validator)
static <T> @NotNull T @Nullable []
toNonnullArray(@Nullable T... values)
-
-
-
Method Detail
-
toNonnullArray
@SafeVarargs @NotNull public static <T> @NotNull T @Nullable [] toNonnullArray(@Nullable @Nullable T... values)
-
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 java.lang.String xAttr, @NotNull @NotNull java.lang.String yAttr, @NotNull @NotNull Length fallback, Inherited inherited, @NotNull @NotNull java.util.function.Function<@NotNull LengthValue,@Nullable LengthValue> validator)
-
arrayContains
@Contract(pure=true) public static <T> boolean arrayContains(T @NotNull [] arr, T element)
-
-