Class ExaminableProperty

java.lang.Object
net.kyori.examination.ExaminableProperty

public abstract class ExaminableProperty
extends Object
An examinable property.
Since:
1.0.0
  • Method Details

    • name

      public abstract @NonNull String name()
      Gets the name.
      Returns:
      the name
      Since:
      1.0.0
    • examine

      public abstract <R> @NonNull R examine​(@NonNull Examiner<? extends R> examiner)
      Gets the value.
      Type Parameters:
      R - the result type
      Parameters:
      examiner - the examiner
      Returns:
      the value
      Since:
      1.0.0
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, @Nullable Object value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, @Nullable String value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, boolean value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, boolean[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, byte value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, byte[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, char value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, char[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, double value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, double[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, float value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, float[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, int value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, int[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, long value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, long[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, short value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0
    • of

      public static @NonNull ExaminableProperty of​(@NonNull String name, short[] value)
      Creates a property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the property
      Since:
      1.0.0