Class Strict

  • All Implemented Interfaces:
    Text

    public final class Strict
    extends TextEnvelope
    Validates encapsulated text using predicate

    There is no thread-safety guarantee.

    Since:
    1.0
    • Constructor Detail

      • Strict

        public Strict​(Pattern pattern,
                      Text origin)
        Ctor.
        Parameters:
        pattern - The Pattern for validating encapsulated text
        origin - The Text
      • Strict

        public Strict​(Func<? super String,​Boolean> predicate,
                      Text origin)
        Ctor.
        Parameters:
        predicate - The Func as a predicate
        origin - The Text