Package com.easydesk.security.util
Class GroupSet<T extends Group>
- Type Parameters:
T- Group 인터페이스를 구현한 타입
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,Set<T>
Group 전용 SecuritySet 구현체.
Group의 PK 타입은 Long으로 고정되어 있으므로 K 제네릭을 명시적으로 Long으로 지정합니다.
- See Also:
-
Field Summary
Fields inherited from class com.easydesk.security.util.SecuritySet
idMap, nameMap -
Constructor Summary
ConstructorsConstructorDescriptionGroupSet()Constructs an empty GroupSetGroupSet(Collection<? extends T> groups) Constructs a new GroupSet with specified contents. -
Method Summary
Methods inherited from class com.easydesk.security.util.SecuritySet
add, clear, contains, contains, containsAll, containsId, containsName, getById, getByName, getIds, getNames, getSet, iterator, remove, sizeMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
GroupSet
public GroupSet()Constructs an empty GroupSet -
GroupSet
Constructs a new GroupSet with specified contents.If the given collection contains multiple objects that have the same id or name, only the first one is added.
- Parameters:
groups- A collection of groups to be contained in the set.
-
-
Method Details
-
toString
Print out a GroupSet as a String- Overrides:
toStringin classSecuritySet<Long,T extends Group> - Returns:
- The GroupSet as String
-