Enum Class NameMatching

java.lang.Object
java.lang.Enum<NameMatching>
com.hypixel.hytale.server.core.NameMatching
All Implemented Interfaces:
Serializable, Comparable<NameMatching>, Constable

public enum NameMatching extends Enum<NameMatching>
  • Enum Constant Details

    • EXACT

      public static final NameMatching EXACT
    • EXACT_IGNORE_CASE

      public static final NameMatching EXACT_IGNORE_CASE
    • STARTS_WITH

      public static final NameMatching STARTS_WITH
    • STARTS_WITH_IGNORE_CASE

      public static final NameMatching STARTS_WITH_IGNORE_CASE
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static NameMatching[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NameMatching valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getComparator

      public Comparator<String> getComparator()
    • find

      @Nullable public <T> T find(@Nonnull Collection<T> players, String value, @Nonnull Function<T,String> getter)
    • find

      @Nullable public static <T> T find(@Nonnull Collection<T> players, String value, @Nonnull Function<T,String> getter, @Nonnull Comparator<String> comparator, @Nonnull BiPredicate<String,String> equality)