Class Concatenator<C,​R>

  • Type Parameters:
    C - the type of the concatenated result
    R - 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 overriding concatenate(Object...) method
    • 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()