Module kivakit.resource
Package com.telenav.kivakit.resource
Class BaseResourceList<T extends Resource>
java.lang.Object
com.telenav.kivakit.core.collections.list.BaseList<Element>
com.telenav.kivakit.core.collections.list.ObjectList<T>
com.telenav.kivakit.resource.BaseResourceList<T>
- All Implemented Interfaces:
Countable
,Addable<T>
,Appendable<T>
,Indexable<T>
,Prependable<T>
,Sequence<T>
,Sized
,DoubleQuantizable
,Quantizable
,Stringable
,StringSource
,Instantiable<BaseList<T>>
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
- Direct Known Subclasses:
FileList
,ResourceList
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.telenav.kivakit.interfaces.string.Stringable
Stringable.Format
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
boolean
Adds the given valueasSet()
count()
The size of this object as aCount
byte[]
digest()
Returns a message digest of this resource list's resource metadata, including the absolute path to the resource, its creation and last modification times, and its size in bytes.largest()
Returns a new list containing the elements in this list that match the given matcher.protected abstract T
newResource
(ResourcePath path) protected abstract BaseResourceList<T>
relativeTo
(ResourceFolder<?> folder) smallest()
Methods inherited from class com.telenav.kivakit.core.collections.list.ObjectList
append, appendAll, appendAll, appendAll, asStringList, copy, emptyList, first, first, leftOf, mapped, maybeReversed, objectList, objectList, objectList, objectList, objectListFromArray, objectListFromArray, objectListFromInts, objectListFromLongs, onNewInstance, partition, prepend, reversed, rightOf, sorted, sorted, titledBox, titledBox, uniqued, with, without
Methods inherited from class com.telenav.kivakit.core.collections.list.BaseList
addAll, addAll, addAll, asArray, asIterator, asIterator, asString, bracketed, bracketed, bulleted, bulleted, checkSizeIncrease, clear, contains, containsAll, endsWith, equals, get, hashCode, indexOf, isEmpty, iterator, join, lastIndexOf, listIterator, listIterator, maximumSize, newInstance, onOutOfRoom, pop, push, quantized, remove, remove, removeAll, removeLast, replaceAll, retainAll, reverse, separator, shuffle, shuffle, size, sort, startsWith, subList, toArray, toArray, toString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.telenav.kivakit.interfaces.collection.Addable
addAll, addAll, addIfNotNull
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com.telenav.kivakit.interfaces.collection.Indexable
getOrDefault, isEqualTo, last
Methods inherited from interface java.util.List
replaceAll, spliterator
Methods inherited from interface com.telenav.kivakit.interfaces.numeric.Quantizable
asCommaSeparatedString, asSimpleString, doubleQuantum, isNonZero, isZero
Methods inherited from interface com.telenav.kivakit.interfaces.collection.Sequence
allMatch, anyMatch, asHashCode, asIterable, asIterable, asList, find, find, first, head, indexOfFirst, indexOfFirst, isEqualTo, join, join, join, join, noneMatch, tail
Methods inherited from interface com.telenav.kivakit.interfaces.collection.Sized
isNonEmpty, quantum
Methods inherited from interface com.telenav.kivakit.interfaces.string.Stringable
asString
-
Constructor Details
-
BaseResourceList
public BaseResourceList()
-
-
Method Details
-
add
Description copied from class:BaseList
-
add
Description copied from class:BaseList
Adds the given value -
asSet
- Returns:
- This sequence as a list
-
count
Description copied from interface:Countable
The size of this object as aCount
- Returns:
- This object's size as a
Count
-
digest
public byte[] digest()Returns a message digest of this resource list's resource metadata, including the absolute path to the resource, its creation and last modification times, and its size in bytes.- Returns:
- The message digest
-
largest
-
set
Description copied from class:BaseList
-
smallest
-
sortedLargestToSmallest
-
sortedOldestToNewest
-
totalSize
-
newResourceList
-