Package ch.njol.skript.util
Class Getter<R,A>
java.lang.Object
ch.njol.skript.util.Getter<R,A>
- Type Parameters:
R
- the returned value typeA
- the type which holds the value
- All Implemented Interfaces:
Converter<A,
R>
@Deprecated(forRemoval=true)
public abstract class Getter<R,A>
extends Object
implements Converter<A,R>
Deprecated, for removal: This API element is subject to removal in a future version.
Used to get a specific value from instances of some type.
-
Field Summary
Fields inherited from interface org.skriptlang.skript.lang.converter.Converter
ALL_CHAINING, ALLOW_UNSAFE_CASTS, NO_CHAINING, NO_LEFT_CHAINING, NO_RIGHT_CHAINING
-
Constructor Summary
ConstructorDescriptionGetter()
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal R
Deprecated, for removal: This API element is subject to removal in a future version.Convenience method to make getter implement converterabstract R
Deprecated, for removal: This API element is subject to removal in a future version.Gets a value from the given object.
-
Constructor Details
-
Getter
public Getter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Gets a value from the given object.- Parameters:
arg
- the object to get the value from- Returns:
- the value
-
convert
Deprecated, for removal: This API element is subject to removal in a future version.Convenience method to make getter implement converter
-
Converter
instead