Package net.kyori.examination
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 Rexamine(@NonNull Examiner<? extends R> examiner)Gets the value.abstract @NonNull java.lang.Stringname()Gets the name.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, boolean value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, boolean[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, byte value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, byte[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, char value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, char[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, double value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, double[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, float value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, float[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, int value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, int[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, long value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, long[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, short value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, short[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, @Nullable java.lang.Object value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull java.lang.String name, @Nullable java.lang.String value)Creates a property.java.lang.StringtoString()
-
Method Details
-
name
public abstract @NonNull java.lang.String name()Gets the name.- Returns:
- the name
-
examine
Gets the value.- Type Parameters:
R- the result type- Parameters:
examiner- the examiner- Returns:
- the value
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
of
public static @NonNull ExaminableProperty of(@NonNull java.lang.String name, @Nullable java.lang.Object value)Creates a property.- Parameters:
name- the namevalue- 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 namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-
of
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
-