Class IdCredentials.Helpers

    • Constructor Detail

      • Helpers

        public Helpers()
    • Method Detail

      • equals

        public static boolean equals​(IdCredentials self,
                                     Object o)
        Standard Object.equals(Object) implementation.
        Parameters:
        self - the this reference.
        o - the other object.
        Returns:
        true if equal.
      • hashCode

        public static int hashCode​(IdCredentials self)
        The standard Object.hashCode() implementation.
        Parameters:
        self - the this reference.
        Returns:
        the hash code.
      • fixEmptyId

        @NonNull
        public static String fixEmptyId​(@CheckForNull
                                        String id)
        Returns either the id or a generated new id if the supplied id is missing.
        Parameters:
        id - the supplied id.
        Returns:
        either the id or a generated new id if the supplied id is missing.