Package ch.njol.skript.classes
Class ChainedConverter<F,M,T>
java.lang.Object
ch.njol.skript.classes.ChainedConverter<F,M,T>
- Type Parameters:
F- same as Converter's(from) M- the middle type, i.e. the type the first converter converts to and the second converter comverts from.T- same as Converter's(to)
- All Implemented Interfaces:
Converter<F,T>
Used to chain convertes to build a single converter. This is automatically created when a new converter is added.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.skript.classes.Converter
Converter.ConverterInfo<F,T>, Converter.ConverterUtils -
Field Summary
Fields inherited from interface ch.njol.skript.classes.Converter
NO_CHAINING, NO_COMMAND_ARGUMENTS, NO_LEFT_CHAINING, NO_RIGHT_CHAINING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable TConverts an object from the given to the desired type.static <F, M, T> ChainedConverter<F,M,T>newInstance(Converter<? super F,?> first, Converter<?,? extends T> second)toString()
-
Constructor Details
-
ChainedConverter
-
-
Method Details
-
newInstance
public static <F, M, T> ChainedConverter<F,M,T> newInstance(Converter<? super F,?> first, Converter<?,? extends T> second) -
convert
Description copied from interface:ConverterConverts an object from the given to the desired type. -
toString
-