Class ShadyPines

java.lang.Object
net.kyori.adventure.util.ShadyPines

public final class ShadyPines
extends Object
Various utilities.
Since:
4.0.0
  • Method Details

    • enumSet

      @SafeVarargs public static <E extends Enum<E>> @NonNull Set<E> enumSet​(Class<E> type, E @NonNull ... constants)
      Creates a set from an array of enum constants.
      Type Parameters:
      E - the enum type
      Parameters:
      type - the enum type
      constants - the enum constants
      Returns:
      the set
      Since:
      4.0.0
    • equals

      public static boolean equals​(double a, double b)
      Checks if a is equal to b.
      Parameters:
      a - a double
      b - a double
      Returns:
      true if a is equal to b, otherwise false
      Since:
      4.0.0
    • equals

      public static boolean equals​(float a, float b)
      Checks if a is equal to b.
      Parameters:
      a - a float
      b - a float
      Returns:
      true if a is equal to b, otherwise false
      Since:
      4.0.0