Class ExtensionId

    • Field Detail

      • TYPE_LIST

        public static final ParameterizedType TYPE_LIST
        Type instance for List<ExtensionId>.
        Since:
        8.0M1
    • Constructor Detail

      • ExtensionId

        public ExtensionId​(String id)
        Parameters:
        id - the extension identifier
        Since:
        8.0M1, 7.4.6
      • ExtensionId

        public ExtensionId​(String id,
                           String version)
        Parameters:
        id - the extension identifier
        version - the extension version
      • ExtensionId

        public ExtensionId​(String id,
                           Version version)
        Parameters:
        id - the extension identifier
        version - the extension version
    • Method Detail

      • getId

        public String getId()
        Returns:
        the extension identifier
      • getVersion

        public Version getVersion()
        Returns:
        the extension version
      • hashCode

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

        public boolean matches​(ExtensionId extensionId)
        Same as equals(Object) but with null version meaning "any version".
        Parameters:
        extensionId - the extension identifier to match
        Returns:
        true if the passes extension id matches this extension id
        Since:
        9.5RC1
      • matchesOne

        public boolean matchesOne​(Iterable<ExtensionId> extensionIds)
        Parameters:
        extensionIds - the extension identifiers to match
        Returns:
        true if one of the passes extension ids matched this extension id
        Since:
        9.5RC1