Class ShadyPines


  • public final class ShadyPines
    extends java.lang.Object
    Various utilities.
    Since:
    4.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static <E extends java.lang.Enum<E>>
      @NotNull java.util.Set<E>
      enumSet​(java.lang.Class<E> type, E @NotNull ... constants)
      Deprecated.
      for removal since 4.8.0, use MonkeyBars.enumSet(Class, Enum[])
      static boolean equals​(double a, double b)
      Checks if a is equal to b.
      static boolean equals​(float a, float b)
      Checks if a is equal to b.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enumSet

        @ScheduledForRemoval(inVersion="5.0.0")
        @Deprecated
        @SafeVarargs
        @NotNull
        public static <E extends java.lang.Enum<E>> @NotNull java.util.Set<E> enumSet​(java.lang.Class<E> type,
                                                                                      E @NotNull ... constants)
        Deprecated.
        for removal since 4.8.0, use MonkeyBars.enumSet(Class, Enum[])
        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