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> Rexamine(@NotNull Examiner<? extends R> examiner)Gets the value.abstract @NotNull Stringname()Gets the name.static @NotNull ExaminablePropertyof(@NotNull String name, boolean value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, boolean[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, byte value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, byte[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, char value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, char[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, double value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, double[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, float value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, float[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, int value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, int[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, long value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, long[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, short value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, short[] value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, @Nullable Object value)Creates a property.static @NotNull ExaminablePropertyof(@NotNull String name, @Nullable String value)Creates a property.StringtoString()
-
-
-
Method Detail
-
name
@NotNull public abstract @NotNull String name()
Gets the name.- Returns:
- the name
- Since:
- 1.0.0
-
examine
@NotNull public abstract <R> R examine(@NotNull @NotNull 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
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, @Nullable @Nullable Object value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, @Nullable @Nullable String value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, boolean value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, boolean[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, byte value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, byte[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, char value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, char[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, double value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, double[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, float value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, float[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, int value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, int[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, long value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, long[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, short value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
of
@NotNull public static @NotNull ExaminableProperty of(@NotNull @NotNull String name, short[] value)
Creates a property.- Parameters:
name- the namevalue- the value- Returns:
- the property
- Since:
- 1.0.0
-
-