Class BasicIdentifier

    • Constructor Detail

      • BasicIdentifier

        public BasicIdentifier​(URI id)
      • BasicIdentifier

        public BasicIdentifier​(String id)
    • Method Detail

      • getUri

        public URI getUri()
        Description copied from interface: Identifier
        Return this identifier as a URI.
        Specified by:
        getUri in interface Identifier
        Returns:
      • newID

        public static Identifier newID​(String id)
        Create a new identifier from a given string.
        Parameters:
        id -
        Returns:
      • newID

        public static Identifier newID​(URI uri)
        Create a new identifier from a given URI.
        Parameters:
        uri -
        Returns:
      • randomID

        public static Identifier randomID()
        Create a random id. Never use random IDs in for things that grant security access, since these are random which does not imply they are unguessable. Random IDs are useful for internal identifiers (such as for objects) or for testing.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • main

        public static void main​(String[] args)