Class AttributeUtil

java.lang.Object
com.github.weisj.jsvg.util.AttributeUtil

public final class AttributeUtil extends Object
  • Constructor Details

    • AttributeUtil

      private AttributeUtil()
  • Method Details

    • toNonnullArray

      @SafeVarargs @NotNull public static <T> T @Nullable [] toNonnullArray(@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 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)