Package org.ujmp.core.collections
Class SetToListWrapper<A>
- java.lang.Object
-
- org.ujmp.core.collections.SetToListWrapper<A>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<A>
,java.util.Collection<A>
,java.util.List<A>
,Wrapper<java.util.Set<A>>
public class SetToListWrapper<A> extends java.lang.Object implements Wrapper<java.util.Set<A>>, java.util.List<A>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private java.util.Set<A>
set
-
Constructor Summary
Constructors Constructor Description SetToListWrapper(java.util.Set<A> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, A element)
boolean
add(A e)
boolean
addAll(int index, java.util.Collection<? extends A> c)
boolean
addAll(java.util.Collection<? extends A> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
A
get(int index)
java.util.Set<A>
getWrappedObject()
Returns the object that is wrapped inside the wrapperint
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<A>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<A>
listIterator()
java.util.ListIterator<A>
listIterator(int index)
A
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
A
set(int index, A element)
void
setWrappedObject(java.util.Set<A> object)
int
size()
java.util.List<A>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
set
private java.util.Set<A> set
-
-
Constructor Detail
-
SetToListWrapper
public SetToListWrapper(java.util.Set<A> set)
-
-
Method Detail
-
getWrappedObject
public java.util.Set<A> 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
public void setWrappedObject(java.util.Set<A> object)
-
add
public boolean add(A e)
-
addAll
public boolean addAll(java.util.Collection<? extends A> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends A> c)
- Specified by:
addAll
in interfacejava.util.List<A>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<A>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<A> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<A>
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
size
public int size()
-
subList
public java.util.List<A> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<A>
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-