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 void
add(int i, E e)
boolean
add(E e)
boolean
addAll(int i, java.util.Collection<? extends E> collection)
boolean
addAll(java.util.Collection<? extends E> collection)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> collection)
E
get(int i)
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<E>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<E>
listIterator()
java.util.ListIterator<E>
listIterator(int i)
E
remove(int i)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
E
set(int i, E e)
int
size()
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:
size
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
size
in interfacejava.util.List<E extends GGResponseObject>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
isEmpty
in interfacejava.util.List<E extends GGResponseObject>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
contains
in interfacejava.util.List<E extends GGResponseObject>
-
iterator
@Nonnull public java.util.Iterator<E> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
iterator
in interfacejava.lang.Iterable<E extends GGResponseObject>
- Specified by:
iterator
in interfacejava.util.List<E extends GGResponseObject>
-
toArray
@Nonnull public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
toArray
in interfacejava.util.List<E extends GGResponseObject>
-
toArray
@Nonnull public <T> T[] toArray(@Nonnull T[] ts)
- Specified by:
toArray
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
toArray
in interfacejava.util.List<E extends GGResponseObject>
-
add
public boolean add(E e)
- Specified by:
add
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
add
in interfacejava.util.List<E extends GGResponseObject>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
remove
in interfacejava.util.List<E extends GGResponseObject>
-
containsAll
public boolean containsAll(@Nonnull java.util.Collection<?> collection)
- Specified by:
containsAll
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
containsAll
in interfacejava.util.List<E extends GGResponseObject>
-
addAll
public boolean addAll(@Nonnull java.util.Collection<? extends E> collection)
- Specified by:
addAll
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
addAll
in interfacejava.util.List<E extends GGResponseObject>
-
addAll
public boolean addAll(int i, @Nonnull java.util.Collection<? extends E> collection)
- Specified by:
addAll
in interfacejava.util.List<E extends GGResponseObject>
-
removeAll
public boolean removeAll(@Nonnull java.util.Collection<?> collection)
- Specified by:
removeAll
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
removeAll
in interfacejava.util.List<E extends GGResponseObject>
-
retainAll
public boolean retainAll(@Nonnull java.util.Collection<?> collection)
- Specified by:
retainAll
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
retainAll
in interfacejava.util.List<E extends GGResponseObject>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<E extends GGResponseObject>
- Specified by:
clear
in interfacejava.util.List<E extends GGResponseObject>
-
get
public E get(int i)
- Specified by:
get
in interfacejava.util.List<E extends GGResponseObject>
-
set
public E set(int i, E e)
- Specified by:
set
in interfacejava.util.List<E extends GGResponseObject>
-
add
public void add(int i, E e)
- Specified by:
add
in interfacejava.util.List<E extends GGResponseObject>
-
remove
public E remove(int i)
- Specified by:
remove
in interfacejava.util.List<E extends GGResponseObject>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<E extends GGResponseObject>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<E extends GGResponseObject>
-
listIterator
@Nonnull public java.util.ListIterator<E> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<E extends GGResponseObject>
-
listIterator
@Nonnull public java.util.ListIterator<E> listIterator(int i)
- Specified by:
listIterator
in interfacejava.util.List<E extends GGResponseObject>
-
subList
@Nonnull public java.util.List<E> subList(int i, int i1)
- Specified by:
subList
in interfacejava.util.List<E extends GGResponseObject>
-
-