Class Concatenator<C,R>
- java.lang.Object
-
- me.s3ns3iw00.jcommands.argument.concatenation.Concatenator<C,R>
-
- Type Parameters:
C
- the type of the concatenated resultR
- the type of the argument result
- Direct Known Subclasses:
StringConcatenator
,TypeConcatenator
public abstract class Concatenator<C,R> extends java.lang.Object
Concatenates the arguments' result to a type of value that based on the concatenation process The process is implemented by subclasses overridingconcatenate(Object...)
method
-
-
Constructor Summary
Constructors Constructor Description Concatenator(java.lang.Class<R> resultType)
Constructs the class with the default requirements
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract C
concatenate(java.lang.Object... results)
Concatenates the arguments using subclass implementationvoid
convertResult(ArgumentResultConverter<C,R> resultConverter)
java.util.Optional<ArgumentResultConverter<C,R>>
getResultConverter()
java.lang.Class<R>
getResultType()
-
-
-
Constructor Detail
-
Concatenator
public Concatenator(java.lang.Class<R> resultType)
Constructs the class with the default requirements- Parameters:
resultType
- the type of the result of the concatenation
-
-
Method Detail
-
concatenate
public abstract C concatenate(java.lang.Object... results)
Concatenates the arguments using subclass implementation- Returns:
- the result of the concatenation
-
getResultType
public java.lang.Class<R> getResultType()
-
convertResult
public void convertResult(ArgumentResultConverter<C,R> resultConverter)
-
getResultConverter
public java.util.Optional<ArgumentResultConverter<C,R>> getResultConverter()
-
-