public class ResourceList extends ArrayList<CommonResource>
modCount| Constructor and Description |
|---|
ResourceList() |
ResourceList(AnnoResource[] array) |
ResourceList(ResourceList copyFrom) |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ResourceList()
public ResourceList(AnnoResource[] array)
public ResourceList(ResourceList copyFrom)
public ResourceList getDirs()
public ResourceList getFiles()
public boolean add(CommonResource e)
add in interface Collection<CommonResource>add in interface List<CommonResource>add in class ArrayList<CommonResource>public ResourceList add(ResourceList otherList)
otherList - public CommonResource get(String name)
public boolean hasChild(String name)
public boolean remove(Object o)
remove in interface Collection<CommonResource>remove in interface List<CommonResource>remove in class ArrayList<CommonResource>public Resource getFirst()
public Resource getLast()
public Resource getRandom()
public ResourceList getReverse()
public ResourceList getSortByModifiedDate()
public ResourceList getSortByName()
public ResourceList getRandomSort()
public ResourceList exclude(String s)
public ResourceList exclude(String s1, String s2)
public ResourceList exclude(String s1, String s2, String s3)
public ResourceList exclude(String s1, String s2, String s3, String s4)
public ResourceList _exclude(String... s)
public ResourceList ofType(String s)
s - public ResourceList truncate(int maxSize)
maxSize - - the maximum number of elements in the new listpublic Map<String,ResourceList> getOfType()
public Resource next(Resource from)
from - public ResourceList closest(String type)
public Map<String,CommonResource> getMap()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.