Interface IdentifierMap

    • Method Detail

      • getSpecialized

        <T> T getSpecialized​(IdentifierSpace<T> authority)
        Returns the identifier associated to the given namespace, or null if this map contains no mapping of the specialized type for the namespace.
        Type Parameters:
        T - the identifier type.
        Parameters:
        authority - the namespace whose associated identifier is to be returned.
        Returns:
        the identifier to which the given namespace is mapped, or null if this map contains no mapping for the namespace.
      • putSpecialized

        <T> T putSpecialized​(IdentifierSpace<T> authority,
                             T value)
                      throws UnsupportedOperationException
        Associates the given identifier with the given namespace in this map (optional operation). If the map previously contained a mapping for the namespace, then the old value is replaced by the specified value.
        Type Parameters:
        T - the identifier type.
        Parameters:
        authority - the namespace with which the given identifier is to be associated.
        value - the identifier to be associated with the given namespace.
        Returns:
        the previous identifier associated with authority, or null if there was no mapping of the specialized type for authority.
        Throws:
        Unsupported­Operation­Exception - if the identifier map is unmodifiable.