Package org.ujmp.core.collections
Class SetToListWrapper<A>
java.lang.Object
org.ujmp.core.collections.SetToListWrapper<A>
- All Implemented Interfaces:
Serializable
,Iterable<A>
,Collection<A>
,List<A>
,Wrapper<Set<A>>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends A> c) boolean
addAll
(Collection<? extends A> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) Returns the object that is wrapped inside the wrapperint
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
setWrappedObject
(Set<A> object) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
set
-
-
Constructor Details
-
SetToListWrapper
-
-
Method Details
-
getWrappedObject
Description copied from interface:Wrapper
Returns the object that is wrapped inside the wrapper- Specified by:
getWrappedObject
in interfaceWrapper<A>
- Returns:
- the inner object
-
setWrappedObject
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<A>
- Specified by:
containsAll
in interfaceList<A>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
toString
-