public class RightSet extends AbstractSet<Right> implements Cloneable, Serializable
Right
.Constructor and Description |
---|
RightSet()
Default constructor.
|
RightSet(Collection<? extends Right> rights)
Create a new initialized set.
|
RightSet(Right... rights)
Create a new initialized set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Right right) |
boolean |
addAll(Collection<? extends Right> rights) |
void |
clear() |
RightSet |
clone() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Right> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public RightSet()
public RightSet(Collection<? extends Right> rights)
rights
- a collection of Right
object to initialize the setpublic RightSet(Right... rights)
rights
- the rights you want in the setpublic boolean equals(Object o)
equals
in interface Collection<Right>
equals
in interface Set<Right>
equals
in class AbstractSet<Right>
public int hashCode()
hashCode
in interface Collection<Right>
hashCode
in interface Set<Right>
hashCode
in class AbstractSet<Right>
public boolean removeAll(Collection<?> objects)
removeAll
in interface Collection<Right>
removeAll
in interface Set<Right>
removeAll
in class AbstractSet<Right>
public boolean add(Right right)
add
in interface Collection<Right>
add
in interface Set<Right>
add
in class AbstractCollection<Right>
public boolean addAll(Collection<? extends Right> rights)
addAll
in interface Collection<Right>
addAll
in interface Set<Right>
addAll
in class AbstractCollection<Right>
public void clear()
clear
in interface Collection<Right>
clear
in interface Set<Right>
clear
in class AbstractCollection<Right>
public boolean contains(Object o)
contains
in interface Collection<Right>
contains
in interface Set<Right>
contains
in class AbstractCollection<Right>
public boolean containsAll(Collection<?> objects)
containsAll
in interface Collection<Right>
containsAll
in interface Set<Right>
containsAll
in class AbstractCollection<Right>
public boolean remove(Object o)
remove
in interface Collection<Right>
remove
in interface Set<Right>
remove
in class AbstractCollection<Right>
public boolean isEmpty()
isEmpty
in interface Collection<Right>
isEmpty
in interface Set<Right>
isEmpty
in class AbstractCollection<Right>
public boolean retainAll(Collection<?> objects)
retainAll
in interface Collection<Right>
retainAll
in interface Set<Right>
retainAll
in class AbstractCollection<Right>
public int size()
size
in interface Collection<Right>
size
in interface Set<Right>
size
in class AbstractCollection<Right>
public Object[] toArray()
toArray
in interface Collection<Right>
toArray
in interface Set<Right>
toArray
in class AbstractCollection<Right>
public <T> T[] toArray(T[] ts)
toArray
in interface Collection<Right>
toArray
in interface Set<Right>
toArray
in class AbstractCollection<Right>
public String toString()
toString
in class AbstractCollection<Right>
public RightSet clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2004–2021 XWiki. All rights reserved.