Class TrimGlobalStep<S,​E>

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterator<Traverser.Admin<E>>, Step<S,​E>

    public final class TrimGlobalStep<S,​E>
    extends ScalarMapStep<S,​E>
    Reference implementation for trim() step, a mid-traversal step which returns a string with leading and trailing whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then an IllegalArgumentException will be thrown.
    David Bechberger (, Yang Xia (
    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • getRequirements

        public Set<TraverserRequirement> getRequirements()
        Description copied from interface: Step
        Provide the necessary TraverserRequirement that must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.
        the set of requirements