public class TargetURISet extends java.util.AbstractSet<org.eclipse.emf.common.util.URI> implements TargetURIs
TargetURIs
.
We extend AbstractSet
on purpose to allow this instance to be funneled through
the old APIs.TargetURIs.Key<T>
Modifier | Constructor and Description |
---|---|
protected |
TargetURISet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(org.eclipse.emf.common.util.URI e) |
boolean |
addAll(java.util.Collection<? extends org.eclipse.emf.common.util.URI> c) |
void |
addAllURIs(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris)
Adds all the uris to this set of targets.
|
void |
addURI(org.eclipse.emf.common.util.URI uri)
Add the given uri to this set of targets.
|
java.util.Set<org.eclipse.emf.common.util.URI> |
asSet()
Returns a
Set view on this resource URIs. |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
contains(org.eclipse.emf.common.util.URI uri)
Returns
true if the uri is contained in this set of targets. |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsResource(org.eclipse.emf.common.util.URI resourceURI)
Returns
true if this set of targets contains at least one element from the
given resourceURI. |
boolean |
equals(java.lang.Object o) |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getEObjectURIs(org.eclipse.emf.common.util.URI resourceURI)
Return all targets that are defined in the given resource.
|
java.util.Collection<org.eclipse.emf.common.util.URI> |
getTargetResourceURIs()
Returns the collection of target resource URIs, e.g.
|
<T> T |
getUserData(TargetURIs.Key<T> key)
Read the user data with the given key.
|
int |
hashCode() |
boolean |
isEmpty()
Returns
true if there is no target URI yet. |
java.util.Iterator<org.eclipse.emf.common.util.URI> |
iterator() |
<T> void |
putUserData(TargetURIs.Key<T> key,
T data)
Store user data with the given key.
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size()
Returns the number of known target object URIs.
|
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public java.util.Iterator<org.eclipse.emf.common.util.URI> iterator()
iterator
in interface java.lang.Iterable<org.eclipse.emf.common.util.URI>
iterator
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
iterator
in interface java.util.Set<org.eclipse.emf.common.util.URI>
iterator
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public <T> T getUserData(TargetURIs.Key<T> key)
TargetURIs
null
is no such user data is available.getUserData
in interface TargetURIs
public <T> void putUserData(TargetURIs.Key<T> key, T data)
TargetURIs
putUserData
in interface TargetURIs
public void addURI(org.eclipse.emf.common.util.URI uri)
TargetURIs
addURI
in interface TargetURIs
public void addAllURIs(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris)
TargetURIs
addAllURIs
in interface TargetURIs
public java.util.Collection<org.eclipse.emf.common.util.URI> getTargetResourceURIs()
TargetURIs
getTargetResourceURIs
in interface TargetURIs
public java.util.Collection<org.eclipse.emf.common.util.URI> getEObjectURIs(org.eclipse.emf.common.util.URI resourceURI)
TargetURIs
getEObjectURIs
in interface TargetURIs
public boolean contains(org.eclipse.emf.common.util.URI uri)
TargetURIs
true
if the uri is contained in this set of targets.contains
in interface TargetURIs
public boolean containsResource(org.eclipse.emf.common.util.URI resourceURI)
TargetURIs
true
if this set of targets contains at least one element from the
given resourceURI.containsResource
in interface TargetURIs
public boolean isEmpty()
TargetURIs
true
if there is no target URI yet.isEmpty
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
isEmpty
in interface java.util.Set<org.eclipse.emf.common.util.URI>
isEmpty
in interface TargetURIs
isEmpty
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
contains
in interface java.util.Set<org.eclipse.emf.common.util.URI>
contains
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
toArray
in interface java.util.Set<org.eclipse.emf.common.util.URI>
toArray
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
toArray
in interface java.util.Set<org.eclipse.emf.common.util.URI>
toArray
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean add(org.eclipse.emf.common.util.URI e)
add
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
add
in interface java.util.Set<org.eclipse.emf.common.util.URI>
add
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
remove
in interface java.util.Set<org.eclipse.emf.common.util.URI>
remove
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
containsAll
in interface java.util.Set<org.eclipse.emf.common.util.URI>
containsAll
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean addAll(java.util.Collection<? extends org.eclipse.emf.common.util.URI> c)
addAll
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
addAll
in interface java.util.Set<org.eclipse.emf.common.util.URI>
addAll
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
retainAll
in interface java.util.Set<org.eclipse.emf.common.util.URI>
retainAll
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
removeAll
in interface java.util.Set<org.eclipse.emf.common.util.URI>
removeAll
in class java.util.AbstractSet<org.eclipse.emf.common.util.URI>
public void clear()
clear
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
clear
in interface java.util.Set<org.eclipse.emf.common.util.URI>
clear
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
equals
in interface java.util.Set<org.eclipse.emf.common.util.URI>
equals
in class java.util.AbstractSet<org.eclipse.emf.common.util.URI>
public int hashCode()
hashCode
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
hashCode
in interface java.util.Set<org.eclipse.emf.common.util.URI>
hashCode
in class java.util.AbstractSet<org.eclipse.emf.common.util.URI>
public int size()
TargetURIs
size
in interface java.util.Collection<org.eclipse.emf.common.util.URI>
size
in interface java.util.Set<org.eclipse.emf.common.util.URI>
size
in interface TargetURIs
size
in class java.util.AbstractCollection<org.eclipse.emf.common.util.URI>
public java.util.Set<org.eclipse.emf.common.util.URI> asSet()
TargetURIs
Set
view on this resource URIs.asSet
in interface TargetURIs