Class ListResponse<E extends GGResponseObject>
- java.lang.Object
-
- com.github.gpluscb.ggjava.entity.AbstractGGEntity
-
- com.github.gpluscb.ggjava.entity.object.AbstractGGObject
-
- com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
-
- com.github.gpluscb.ggjava.entity.object.response.ListResponse<E>
-
- All Implemented Interfaces:
GGEntity,GGObject,GGResponseObject,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
public class ListResponse<E extends GGResponseObject> extends AbstractGGResponseObject implements java.util.List<E>
-
-
Constructor Summary
Constructors Constructor Description ListResponse(EntityType type)ListResponse(EntityType type, java.util.List<E> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, E e)booleanadd(E e)booleanaddAll(int i, java.util.Collection<? extends E> collection)booleanaddAll(java.util.Collection<? extends E> collection)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> collection)Eget(int i)intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<E>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<E>listIterator()java.util.ListIterator<E>listIterator(int i)Eremove(int i)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> collection)booleanretainAll(java.util.Collection<?> collection)Eset(int i, E e)intsize()java.util.List<E>subList(int i, int i1)java.lang.Object[]toArray()<T> T[]toArray(T[] ts)-
Methods inherited from class com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
checkProvided, isProvided
-
Methods inherited from class com.github.gpluscb.ggjava.entity.AbstractGGEntity
getGGEntityType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.gpluscb.ggjava.entity.GGEntity
getGGEntityType
-
-
-
-
Constructor Detail
-
ListResponse
public ListResponse(@Nonnull EntityType type)
-
ListResponse
public ListResponse(@Nonnull EntityType type, @Nonnull java.util.List<E> value)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
sizein interfacejava.util.List<E extends GGResponseObject>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
isEmptyin interfacejava.util.List<E extends GGResponseObject>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
containsin interfacejava.util.List<E extends GGResponseObject>
-
iterator
@Nonnull public java.util.Iterator<E> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
iteratorin interfacejava.lang.Iterable<E extends GGResponseObject>- Specified by:
iteratorin interfacejava.util.List<E extends GGResponseObject>
-
toArray
@Nonnull public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
toArrayin interfacejava.util.List<E extends GGResponseObject>
-
toArray
@Nonnull public <T> T[] toArray(@Nonnull T[] ts)- Specified by:
toArrayin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
toArrayin interfacejava.util.List<E extends GGResponseObject>
-
add
public boolean add(E e)
- Specified by:
addin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
addin interfacejava.util.List<E extends GGResponseObject>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
removein interfacejava.util.List<E extends GGResponseObject>
-
containsAll
public boolean containsAll(@Nonnull java.util.Collection<?> collection)- Specified by:
containsAllin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
containsAllin interfacejava.util.List<E extends GGResponseObject>
-
addAll
public boolean addAll(@Nonnull java.util.Collection<? extends E> collection)- Specified by:
addAllin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
addAllin interfacejava.util.List<E extends GGResponseObject>
-
addAll
public boolean addAll(int i, @Nonnull java.util.Collection<? extends E> collection)- Specified by:
addAllin interfacejava.util.List<E extends GGResponseObject>
-
removeAll
public boolean removeAll(@Nonnull java.util.Collection<?> collection)- Specified by:
removeAllin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
removeAllin interfacejava.util.List<E extends GGResponseObject>
-
retainAll
public boolean retainAll(@Nonnull java.util.Collection<?> collection)- Specified by:
retainAllin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
retainAllin interfacejava.util.List<E extends GGResponseObject>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<E extends GGResponseObject>- Specified by:
clearin interfacejava.util.List<E extends GGResponseObject>
-
get
public E get(int i)
- Specified by:
getin interfacejava.util.List<E extends GGResponseObject>
-
set
public E set(int i, E e)
- Specified by:
setin interfacejava.util.List<E extends GGResponseObject>
-
add
public void add(int i, E e)- Specified by:
addin interfacejava.util.List<E extends GGResponseObject>
-
remove
public E remove(int i)
- Specified by:
removein interfacejava.util.List<E extends GGResponseObject>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<E extends GGResponseObject>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<E extends GGResponseObject>
-
listIterator
@Nonnull public java.util.ListIterator<E> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<E extends GGResponseObject>
-
listIterator
@Nonnull public java.util.ListIterator<E> listIterator(int i)
- Specified by:
listIteratorin interfacejava.util.List<E extends GGResponseObject>
-
subList
@Nonnull public java.util.List<E> subList(int i, int i1)
- Specified by:
subListin interfacejava.util.List<E extends GGResponseObject>
-
-