Class ExaminableProperty

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

public abstract class ExaminableProperty
extends java.lang.Object
An examinable property.
  • Method Summary

    Modifier and Type Method Description
    abstract <R> @NonNull R examine​(@NonNull Examiner<? extends R> examiner)
    Gets the value.
    abstract @NonNull java.lang.String name()
    Gets the name.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, boolean value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, boolean[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, byte value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, byte[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, char value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, char[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, double value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, double[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, float value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, float[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, int value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, int[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, long value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, long[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, short value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, short[] value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, @Nullable java.lang.Object value)
    Creates a property.
    static @NonNull ExaminableProperty of​(@NonNull java.lang.String name, @Nullable java.lang.String value)
    Creates a property.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • name

      public abstract @NonNull java.lang.String name()
      Gets the name.
      Returns:
      the name
    • 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
    • toString

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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