public class SecureSet<E> extends Object implements Set<E>
AllPermission.| Constructor and Description |
|---|
SecureSet(Permission permission)
Constructs a SecureSet using new
HashSet inside. |
SecureSet(Set<E> set,
Permission permission)
Constructs a SecureSet using new given
Set instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> elements) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> coll) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> pds) |
boolean |
retainAll(Collection<?> pds) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streampublic SecureSet(Permission permission)
HashSet inside.permission - Permission that will be required for modificaiton.public SecureSet(Set<E> set, Permission permission)
Set instance.set - Set, to be based onpermission - Permission that will be required for modificaiton.public boolean add(E e)
public boolean addAll(Collection<? extends E> elements)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> coll)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> pds)
public boolean retainAll(Collection<?> pds)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
Copyright © 2021 eXo Platform SAS. All Rights Reserved.