Klasse DefaultCompositeKey<T>
java.lang.Object
java.util.AbstractCollection<DomainKey<T>>
org.xbib.interlibrary.catalog.matching.DefaultCompositeKey<T>
- Typparameter:
T
- type parameter
- Alle implementierten Schnittstellen:
Iterable<DomainKey<T>>
,Collection<DomainKey<T>>
,CompositeKey<T>
public class DefaultCompositeKey<T>
extends AbstractCollection<DomainKey<T>>
implements CompositeKey<T>
A composite key.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Encode cluster key as string or null.encodeToURI
(String prefix) Get URI of this key.getComponent
(Domain domain) Get component for a given domain.boolean
Get usable flag.boolean
isUsable()
iterator()
static DefaultCompositeKey
<String> void
setUsable
(boolean usable) Set or unset usable flag.int
size()
toString()
void
Update component.Von Klasse geerbte Methoden java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Konstruktordetails
-
DefaultCompositeKey
public DefaultCompositeKey() -
DefaultCompositeKey
public DefaultCompositeKey(char componentDelimiter, char delimiter)
-
-
Methodendetails
-
add
- Angegeben von:
add
in SchnittstelleCollection<T>
- Setzt außer Kraft:
add
in KlasseAbstractCollection<DomainKey<T>>
-
iterator
- Angegeben von:
iterator
in SchnittstelleCollection<T>
- Angegeben von:
iterator
in SchnittstelleIterable<T>
- Angegeben von:
iterator
in KlasseAbstractCollection<DomainKey<T>>
-
size
public int size()- Angegeben von:
size
in SchnittstelleCollection<T>
- Angegeben von:
size
in KlasseAbstractCollection<DomainKey<T>>
-
encodeToURI
Get URI of this key. Create key if not already encoded.- Angegeben von:
encodeToURI
in SchnittstelleCompositeKey<T>
- Parameter:
prefix
- the prefix- Gibt zurück:
- uri
- Löst aus:
URISyntaxException
- if URI syntax is invalidEncoderException
- if encoding fails
-
encodeToString
Beschreibung aus Schnittstelle kopiert:CompositeKey
Encode cluster key as string or null.- Angegeben von:
encodeToString
in SchnittstelleCompositeKey<T>
- Gibt zurück:
- the encoded cluster key or null
- Löst aus:
EncoderException
- if encoding fails
-
update
Beschreibung aus Schnittstelle kopiert:CompositeKey
Update component.- Angegeben von:
update
in SchnittstelleCompositeKey<T>
- Parameter:
component
- component
-
getComponent
Beschreibung aus Schnittstelle kopiert:CompositeKey
Get component for a given domain.- Angegeben von:
getComponent
in SchnittstelleCompositeKey<T>
- Parameter:
domain
- the domain- Gibt zurück:
- the cluster key component
-
isUsable
public boolean isUsable() -
setUsable
public void setUsable(boolean usable) Beschreibung aus Schnittstelle kopiert:CompositeKey
Set or unset usable flag. This flag can invalidate the key, if the application decides the key should not be used, but retains the components.- Angegeben von:
setUsable
in SchnittstelleCompositeKey<T>
- Parameter:
usable
- true for uable
-
getUsable
public boolean getUsable()Beschreibung aus Schnittstelle kopiert:CompositeKey
Get usable flag.- Angegeben von:
getUsable
in SchnittstelleCompositeKey<T>
- Gibt zurück:
- true is usable
-
parse
public static DefaultCompositeKey<String> parse(URI key, char componentDelimiter, char delimiter) throws InvalidDomainException - Löst aus:
InvalidDomainException
-
toString
- Setzt außer Kraft:
toString
in KlasseAbstractCollection<DomainKey<T>>
-