Class ValidString


  • public class ValidString
    extends java.lang.Object
    A String that has passed a validation process.
    • Field Detail

      • string

        public final java.lang.String string
      • validator

        public final Validator validator
    • Method Detail

      • create

        public static ValidString create​(java.lang.String string,
                                         Validator validator)
        Apply validation and return a ValidatedString. Throws a FusekiException if validation fails. Does not return null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object