public class ExtensionId extends Object implements Serializable, Comparable<ExtensionId>
Modifier and Type | Field and Description |
---|---|
static ParameterizedType |
TYPE_LIST
Type instance for
List<ExtensionId> . |
Constructor and Description |
---|
ExtensionId(String id) |
ExtensionId(String id,
String version) |
ExtensionId(String id,
Version version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ExtensionId o) |
boolean |
equals(Object obj) |
String |
getId() |
Version |
getVersion() |
int |
hashCode() |
boolean |
matches(ExtensionId extensionId)
Same as
equals(Object) but with null version meaning "any version". |
boolean |
matchesOne(Iterable<ExtensionId> extensionIds) |
String |
toString() |
public static final ParameterizedType TYPE_LIST
List<ExtensionId>
.public ExtensionId(String id)
id
- the extension identifierpublic ExtensionId(String id, String version)
id
- the extension identifierversion
- the extension versionpublic String getId()
public Version getVersion()
public int compareTo(ExtensionId o)
compareTo
in interface Comparable<ExtensionId>
public boolean matches(ExtensionId extensionId)
equals(Object)
but with null
version meaning "any version".extensionId
- the extension identifier to matchpublic boolean matchesOne(Iterable<ExtensionId> extensionIds)
extensionIds
- the extension identifiers to matchCopyright © 2004–2021 XWiki. All rights reserved.