Package net.kyori.examination
Class ExaminableProperty
- java.lang.Object
-
- net.kyori.examination.ExaminableProperty
-
public abstract class ExaminableProperty extends Object
An examinable property.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <R> @NonNull Rexamine(@NonNull Examiner<? extends R> examiner)Gets the value.abstract @NonNull Stringname()Gets the name.static @NonNull ExaminablePropertyof(@NonNull String name, boolean value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, boolean[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, byte value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, byte[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, char value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, char[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, double value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, double[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, float value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, float[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, int value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, int[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, long value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, long[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, short value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, short[] value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, @Nullable Object value)Creates a property.static @NonNull ExaminablePropertyof(@NonNull String name, @Nullable String value)Creates a property.StringtoString()
-
-
-
Method Detail
-
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
-
of
public static @NonNull ExaminableProperty of(@NonNull String name, @Nullable Object value)
Creates a property.- Parameters:
name- the namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- 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 namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
-