Class TrimLocalStep<S,​E>

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

    public final class TrimLocalStep<S,​E>
    extends StringLocalStep<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.
    Author:
    David Bechberger (http://bechberger.com), Yang Xia (http://github.com/xiazcy)
    See Also:
    Serialized Form