Class Domainpart

    • Method Detail

      • fromOrNull

        public static Domainpart fromOrNull​(java.lang.CharSequence cs)
        Get a Domainpart from a given CharSequence or null if the input is not a valid domainpart.
        Parameters:
        cs - the input CharSequence
        Returns:
        a Domainpart or null
      • fromOrThrowUnchecked

        public static Domainpart fromOrThrowUnchecked​(java.lang.CharSequence cs)
        Like from(String) but does throw an unchecked IllegalArgumentException instead of a XmppStringprepException.
        Parameters:
        cs - the character sequence which should be transformed to a Domainpart
        Returns:
        the Domainpart if no exception occurs
        Throws:
        java.lang.IllegalArgumentException - if the given input is not a valid Domainpart
        Since:
        0.6.2
        See Also:
        from(String)