Constructor and Description |
---|
PartialList(int totalSize,
List<E> list)
Deprecated.
since 6.0 use
ofKnownSize(List, int) } |
Modifier and Type | Method and Description |
---|---|
List<E> |
getList() |
long |
getTotalSize() |
boolean |
isCompleteList() |
boolean |
isTotalSizeKnown() |
static <E> PartialList<E> |
ofKnownSize(List<E> list,
int totalSize)
Creates a
PartialList of known total size. |
static <E> PartialList<E> |
ofKnownSize(List<E> list,
long totalSize)
Creates a
PartialList of known total size. |
static <E> PartialList<E> |
ofUnknownSize(List<E> list)
Creates a
PartialList of unknown total size. |
@Deprecated public PartialList(int totalSize, List<E> list)
ofKnownSize(List, int)
}@NotNull public static <E> PartialList<E> ofUnknownSize(@NotNull List<E> list)
PartialList
of unknown total size. The created partial list will not be a complete list
.E
- type of listlist
- partial list of elementsPartialList
@NotNull public static <E> PartialList<E> ofKnownSize(@NotNull List<E> list, int totalSize)
PartialList
of known total size. The created partial list might be a complete list
.E
- type of listlist
- partial list of elementstotalSize
- total number of elements in the collectionPartialList
@NotNull public static <E> PartialList<E> ofKnownSize(@NotNull List<E> list, long totalSize)
PartialList
of known total size. The created partial list might be a complete list
.E
- type of listlist
- partial list of elementstotalSize
- total number of elements in the collectionPartialList
public boolean isTotalSizeKnown()
public long getTotalSize()
@NotNull public List<E> getList()
public boolean isCompleteList()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.