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
-
-
Constructor Summary
Constructors Constructor and Description SetToListWrapper(java.util.Set<A> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(A e)voidadd(int index, A element)booleanaddAll(java.util.Collection<? extends A> c)booleanaddAll(int index, java.util.Collection<? extends A> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)Aget(int index)java.util.Set<A>getWrappedObject()Returns the object that is wrapped inside the wrapperintindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<A>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<A>listIterator()java.util.ListIterator<A>listIterator(int index)Aremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)Aset(int index, A element)voidsetWrappedObject(java.util.Set<A> object)intsize()java.util.List<A>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)java.lang.StringtoString()
-
-
-
Constructor Detail
-
SetToListWrapper
public SetToListWrapper(java.util.Set<A> set)
-
-
Method Detail
-
getWrappedObject
public java.util.Set<A> getWrappedObject()
Description copied from interface:WrapperReturns the object that is wrapped inside the wrapper- Specified by:
getWrappedObjectin interfaceWrapper<java.util.Set<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:
addAllin 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:
indexOfin 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:
lastIndexOfin interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<A>
-
listIterator
public java.util.ListIterator<A> listIterator(int index)
- Specified by:
listIteratorin 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:
subListin interfacejava.util.List<A>
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG