Package io.milton.http.annotated
Class ResourceList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<CommonResource>,Collection<CommonResource>,List<CommonResource>,RandomAccess
- Author:
- brad
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ResourceList otherList) Just adds the elements in the given list to this list and returns list to make it suitable for chaining and use from velocitygetDirs()getFiles()getFirst()getLast()getMap()booleanReturns the next item after the one given.Returns a new list where elements satisfy is(s)booleantruncate(int maxSize) Return a new list with a size no greater then the given argumentMethods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ResourceList
public ResourceList() -
ResourceList
-
ResourceList
-
-
Method Details
-
getDirs
-
getFiles
-
add
- Specified by:
addin interfaceCollection<CommonResource>- Specified by:
addin interfaceList<CommonResource>- Overrides:
addin classArrayList<CommonResource>
-
add
Just adds the elements in the given list to this list and returns list to make it suitable for chaining and use from velocity- Parameters:
otherList-- Returns:
-
get
-
remove
-
hasChild
-
remove
- Specified by:
removein interfaceCollection<CommonResource>- Specified by:
removein interfaceList<CommonResource>- Overrides:
removein classArrayList<CommonResource>
-
getFirst
-
getLast
-
getRandom
-
getReverse
-
getSortByModifiedDate
-
getSortByName
-
getRandomSort
-
exclude
-
exclude
-
exclude
-
exclude
-
_exclude
-
ofType
Returns a new list where elements satisfy is(s)- Parameters:
s-- Returns:
-
truncate
Return a new list with a size no greater then the given argument- Parameters:
maxSize- - the maximum number of elements in the new list- Returns:
-
getOfType
-
next
Returns the next item after the one given. If the given argument is null, returns the first item in the list- Parameters:
from-- Returns:
-
closest
-
getMap
-