| Modifier and Type | Method and Description |
|---|---|
ICommonsList<CALLBACKTYPE> |
ICallbackList.getAllCallbacks() |
ICommonsList<CALLBACKTYPE> |
CallbackList.getAllCallbacks() |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<EXTYPE> |
CollectingExceptionListCallback.getAllExceptions() |
| Modifier and Type | Class and Description |
|---|---|
class |
NonBlockingStack<ELEMENTTYPE>
A version of a stack that does not use
Vector but an
CommonsArrayList as the underlying data structure as opposed to
Stack. |
| Modifier and Type | Class and Description |
|---|---|
class |
CommonsArrayList<ELEMENTTYPE>
A special
ArrayList implementation based on ICommonsList. |
class |
CommonsCopyOnWriteArrayList<ELEMENTTYPE>
A special
CommonsCopyOnWriteArrayList implementation based on
ICommonsList. |
class |
CommonsLinkedList<ELEMENTTYPE>
A special
LinkedList implementation based on ICommonsList. |
class |
CommonsVector<ELEMENTTYPE>
A special
Vector implementation based on ICommonsList. |
| Modifier and Type | Method and Description |
|---|---|
default ICommonsList<VALUETYPE> |
ICommonsMap.copyOfValues() |
default ICommonsList<VALUETYPE> |
ICommonsMap.copyOfValues(Predicate<? super VALUETYPE> aFilter)
Create a copy of all values matching the passed filter.
|
default <DSTTYPE> ICommonsList<DSTTYPE> |
ICommonsMap.copyOfValuesMapped(Function<? super VALUETYPE,? extends DSTTYPE> aMapper)
Create a copy of all values after applying the passed mapping function.
|
default <DSTTYPE> ICommonsList<DSTTYPE> |
ICommonsMap.copyOfValuesMapped(Predicate<? super VALUETYPE> aFilter,
Function<? super VALUETYPE,? extends DSTTYPE> aMapper)
Create a copy of all values matching the passed filter which are then
converted using the provided function.
|
default <T> ICommonsList<T> |
ICommonsList.createInstance()
Create a new empty list.
|
default ICommonsList<ELEMENTTYPE> |
ICommonsList.getAll(Predicate<? super ELEMENTTYPE> aFilter)
Get all elements matching the provided filter.
|
default <DSTTYPE extends ELEMENTTYPE> |
ICommonsList.getAllInstanceOf(Class<DSTTYPE> aDstClass)
Get all instances of the provided class that are contained in this list.
|
default <DSTTYPE> ICommonsList<DSTTYPE> |
ICommonsList.getAllMapped(Function<? super ELEMENTTYPE,DSTTYPE> aMapper)
Create a new list where all existing elements are mapped with the provided
function.
|
default <DSTTYPE> ICommonsList<DSTTYPE> |
ICommonsList.getAllMapped(Predicate<? super ELEMENTTYPE> aFilter,
Function<? super ELEMENTTYPE,DSTTYPE> aMapper)
Create a new list where all elements matching the filter are mapped with
the provided function.
|
default ICommonsList<ELEMENTTYPE> |
ICommonsCollection.getCopyAsList() |
default ICommonsList<ELEMENTTYPE> |
ICommonsCollection.getSorted(Comparator<? super ELEMENTTYPE> aComparator)
Return a sorted version of this collection.
|
default ICommonsList<ELEMENTTYPE> |
ICommonsList.getSortedInline(Comparator<? super ELEMENTTYPE> aComparator)
Sort this line without creating a copy.
|
default ICommonsList<ELEMENTTYPE> |
ICommonsList.reverse()
Reverse the order of this list.
|
default ICommonsList<ELEMENTTYPE> |
ICommonsList.swapItems(int nFirstIndex,
int nSecondIndex)
Swap list items.
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<DATATYPE> |
AbstractConcurrentCollector.drainQueue() |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<String> |
CSVIterator.next()
Returns the next element in the iterator.
|
ICommonsList<String> |
CSVParser.parseLine(String sNextLine)
Parses an incoming String and returns an array of elements.
|
ICommonsList<String> |
CSVParser.parseLineMulti(String sNextLine)
Parses an incoming String and returns an array of elements.
|
ICommonsList<ICommonsList<String>> |
CSVReader.readAll()
Reads the entire file into a list with each element being a list of
String of tokens. |
ICommonsList<String> |
CSVReader.readNext()
Reads the next line from the buffer and converts to a string array.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<ICommonsList<String>> |
CSVReader.iterator()
Creates an Iterator for processing the csv data.
|
ICommonsList<ICommonsList<String>> |
CSVReader.readAll()
Reads the entire file into a list with each element being a list of
String of tokens. |
| Modifier and Type | Method and Description |
|---|---|
void |
CSVReader.readAll(Consumer<? super ICommonsList<String>> aLineConsumer)
Reads the entire file line by line and invoke a callback for each line.
|
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<PDTZoneID> |
PDTZoneID.getAllDefaultZoneIDs() |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<ErrorTextProvider.IFormattableItem> |
ErrorTextProvider.getAllItems() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IErrorList
Interface for a list of
IError objects. |
| Modifier and Type | Class and Description |
|---|---|
class |
ErrorList
Default implementation of
IErrorList. |
| Modifier and Type | Method and Description |
|---|---|
default <T> ICommonsList<T> |
IErrorList.getAllDataItems(Function<? super IError,? extends T> aExtractor)
Get a list with only a single data element.
|
default ICommonsList<String> |
IErrorList.getAllTexts(Locale aContentLocale)
Get a list with all contained texts.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> ICommonsOrderedMap<T,ICommonsList<IError>> |
IErrorList.getGrouped(Function<? super IError,T> aKeyExtractor) |
default ICommonsMap<String,ICommonsList<IError>> |
IErrorList.getGroupedByFieldName() |
default ICommonsMap<String,ICommonsList<IError>> |
IErrorList.getGroupedByID() |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<? extends CHILDTYPE> |
IHasChildrenSorted.getAllChildren() |
ICommonsList<? extends CHILDTYPE> |
IChildrenProviderSorted.getAllChildren(CHILDTYPE aCurrent)
Get the children of the passed object.
|
ICommonsList<? extends CHILDTYPE> |
ChildrenProviderSorting.getAllChildren(CHILDTYPE aCurrent) |
ICommonsList<? extends CHILDTYPE> |
ChildrenProviderHasChildrenSorting.getAllChildren(CHILDTYPE aCurrent) |
ICommonsList<? extends CHILDTYPE> |
ChildrenProviderHasChildrenSorted.getAllChildren(CHILDTYPE aCurrent) |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<String> |
HttpHeaderMap.getAllHeaderLines() |
ICommonsList<String> |
HttpHeaderMap.getAllHeaderValues(String sName)
Get all header values of a certain header name
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsOrderedMap<String,ICommonsList<String>> |
HttpHeaderMap.getAllHeaders() |
Iterator<Map.Entry<String,ICommonsList<String>>> |
HttpHeaderMap.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<String> |
SimpleFileIO.getAllFileLines(File aFile,
Charset aCharset)
Get the content of the passed file as a list of lines, whereas each line
does not contain a separator.
|
static ICommonsList<File> |
FileHelper.getDirectoryContent(File aDirectory)
This is a replacement for
File.listFiles() doing some
additional checks on permissions. |
static ICommonsList<File> |
FileHelper.getDirectoryContent(File aDirectory,
FileFilter aFileFilter)
This is a replacement for
File.listFiles(FileFilter) doing
some additional checks on permissions. |
static ICommonsList<File> |
FileHelper.getDirectoryContent(File aDirectory,
FilenameFilter aFilenameFilter)
This is a replacement for
File.listFiles(FilenameFilter) doing
some additional checks on permissions. |
static ICommonsList<Path> |
PathHelper.getDirectoryContent(Path aDirectory)
This is a replacement for
Path.listFiles() doing some
additional checks on permissions. |
static ICommonsList<Path> |
PathHelper.getDirectoryContent(Path aDirectory,
Predicate<? super Path> aPathFilter)
This is a replacement for
Path.listFiles(FilenameFilter) doing
some additional checks on permissions. |
| Modifier and Type | Field and Description |
|---|---|
protected ICommonsList<IReadableResourceProvider> |
ReadableResourceProviderChain.m_aReadingResourceProviders |
protected ICommonsList<IWritableResourceProvider> |
WritableResourceProviderChain.m_aWritableResourceProviders |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<IReadableResourceProvider> |
ReadableResourceProviderChain.getAllContainedReadingResourceProviders() |
ICommonsList<IWritableResourceProvider> |
WritableResourceProviderChain.getAllContainedWritingResourceProviders() |
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<String> |
StreamHelper.readStreamLines(IHasInputStream aISP,
Charset aCharset)
Get the content of the passed Spring resource as one big string in the passed
character set.
|
static ICommonsList<String> |
StreamHelper.readStreamLines(IHasInputStream aISP,
Charset aCharset,
int nLinesToSkip,
int nLinesToRead)
Get the content of the passed Spring resource as one big string in the passed
character set.
|
static ICommonsList<String> |
StreamHelper.readStreamLines(InputStream aIS,
Charset aCharset)
Get the content of the passed stream as a list of lines in the passed
character set.
|
static ICommonsList<String> |
StreamHelper.readStreamLines(InputStream aIS,
Charset aCharset,
int nLinesToSkip,
int nLinesToRead)
Get the content of the passed stream as a list of lines in the passed
character set.
|
| Modifier and Type | Method and Description |
|---|---|
static <ENUMTYPE extends Enum<ENUMTYPE>> |
EnumHelper.getAll(Class<ENUMTYPE> aClass,
Predicate<? super ENUMTYPE> aFilter) |
static ICommonsList<String> |
ClassPathHelper.getAllClassPathEntries() |
static <T> ICommonsList<T> |
ServiceLoaderHelper.getAllSPIImplementations(Class<T> aSPIClass)
Uses the
ServiceLoader to load all SPI implementations of the
passed class |
static <T> ICommonsList<T> |
ServiceLoaderHelper.getAllSPIImplementations(Class<T> aSPIClass,
ClassLoader aClassLoader)
Uses the
ServiceLoader to load all SPI implementations of the
passed class |
static <T> ICommonsList<T> |
ServiceLoaderHelper.getAllSPIImplementations(Class<T> aSPIClass,
ClassLoader aClassLoader,
org.slf4j.Logger aLogger)
Uses the
ServiceLoader to load all SPI implementations of the
passed class |
static <T> ICommonsList<T> |
ServiceLoaderHelper.getAllSPIImplementations(Class<T> aSPIClass,
org.slf4j.Logger aLogger)
Uses the
ServiceLoader to load all SPI implementations of the
passed class |
static ICommonsList<Class<?>> |
ClassHierarchyCache.getClassHierarchyList(Class<?> aClass)
Get the complete super class hierarchy of the passed class including all
super classes and all interfaces of the passed class and of all parent
classes.
|
static <DATATYPE extends ICloneable<DATATYPE>> |
CloneHelper.getClonedList(Iterable<DATATYPE> aList)
Get a list where each contained item is also cloned.
|
static <DATATYPE> ICommonsList<DATATYPE> |
CloneHelper.getGenericClonedList(Iterable<DATATYPE> aList)
Get a list where each contained item is also cloned.
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<Locale> |
LocaleCache.getAllLocales()
Get all contained locales except the locales "all" and "independent"
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<LogMessage> |
InMemoryLogger.getAllMessages() |
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> ICommonsList<ICommonsList<DATATYPE>> |
CombinationGenerator.getAllPermutations(ICommonsList<DATATYPE> aInput,
int nSlotCount)
Get a list of all permutations of the input elements.
|
ICommonsList<DATATYPE> |
CombinationGenerator.next()
Generate next combination (algorithm from Rosen p. 286)
|
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> ICommonsList<ICommonsList<DATATYPE>> |
CombinationGenerator.getAllPermutations(ICommonsList<DATATYPE> aInput,
int nSlotCount)
Get a list of all permutations of the input elements.
|
ICommonsSet<ICommonsList<DATATYPE>> |
CombinationGeneratorFlexible.getCombinations(ICommonsList<DATATYPE> aElements)
Generate all combinations without duplicates.
|
static <DATATYPE> ICommonsSet<ICommonsList<DATATYPE>> |
CombinationGeneratorFlexible.getCombinations(ICommonsList<DATATYPE> aElements,
boolean bAllowEmpty) |
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> void |
CombinationGenerator.addAllPermutations(ICommonsList<DATATYPE> aInput,
int nSlotCount,
Collection<ICommonsList<DATATYPE>> aResultList)
Fill a list with all permutations of the input elements.
|
static <DATATYPE> ICommonsList<ICommonsList<DATATYPE>> |
CombinationGenerator.getAllPermutations(ICommonsList<DATATYPE> aInput,
int nSlotCount)
Get a list of all permutations of the input elements.
|
ICommonsSet<ICommonsList<DATATYPE>> |
CombinationGeneratorFlexible.getCombinations(ICommonsList<DATATYPE> aElements)
Generate all combinations without duplicates.
|
static <DATATYPE> ICommonsSet<ICommonsList<DATATYPE>> |
CombinationGeneratorFlexible.getCombinations(ICommonsList<DATATYPE> aElements,
boolean bAllowEmpty) |
static <DATATYPE> void |
CombinationGeneratorFlexible.iterateAllCombinations(ICommonsList<DATATYPE> aElements,
boolean bAllowEmpty,
Consumer<? super ICommonsList<DATATYPE>> aCallback) |
void |
CombinationGeneratorFlexible.iterateAllCombinations(ICommonsList<DATATYPE> aElements,
Consumer<? super ICommonsList<DATATYPE>> aCallback)
Iterate all combination, no matter they are unique or not.
|
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> void |
CombinationGenerator.addAllPermutations(ICommonsList<DATATYPE> aInput,
int nSlotCount,
Collection<ICommonsList<DATATYPE>> aResultList)
Fill a list with all permutations of the input elements.
|
static <DATATYPE> void |
CombinationGeneratorFlexible.iterateAllCombinations(ICommonsList<DATATYPE> aElements,
boolean bAllowEmpty,
Consumer<? super ICommonsList<DATATYPE>> aCallback) |
void |
CombinationGeneratorFlexible.iterateAllCombinations(ICommonsList<DATATYPE> aElements,
Consumer<? super ICommonsList<DATATYPE>> aCallback)
Iterate all combination, no matter they are unique or not.
|
| Constructor and Description |
|---|
CombinationGenerator(ICommonsList<DATATYPE> aElements,
int nSlotCount)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<MimeTypeParameter> |
MimeType.getAllParameters() |
ICommonsList<MimeTypeParameter> |
IMimeType.getAllParameters() |
| Modifier and Type | Method and Description |
|---|---|
<T> ICommonsList<T> |
CommonsMock.mockMany(int nCount,
Class<T> aClass,
Object... aParams)
Create a
List of mocked objects. |
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<String> |
RegExHelper.getSplitToList(CharSequence sText,
String sRegEx)
Split the passed text with the given regular expression.
|
static ICommonsList<String> |
RegExHelper.getSplitToList(CharSequence sText,
String sRegEx,
int nLimit)
Split the passed text with the given regular expression.
|
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<String> |
StringHelper.getExploded(char cSep,
String sElements)
Take a concatenated String and return a
ICommonsList of all elements
in the passed string, using specified separator string. |
static ICommonsList<String> |
StringHelper.getExploded(char cSep,
String sElements,
int nMaxItems)
Take a concatenated String and return a
ICommonsList of all elements
in the passed string, using specified separator string. |
static ICommonsList<String> |
StringHelper.getExploded(String sSep,
String sElements)
Take a concatenated String and return a
ICommonsList of all elements
in the passed string, using specified separator string. |
static ICommonsList<String> |
StringHelper.getExploded(String sSep,
String sElements,
int nMaxItems)
Take a concatenated String and return a
ICommonsList of all elements
in the passed string, using specified separator string. |
| Modifier and Type | Method and Description |
|---|---|
default ICommonsList<String> |
IGetterByIndexTrait.getAsStringList(int nIndex)
Get a list of all attribute values with the same name.
|
default ICommonsList<String> |
IGetterByIndexTrait.getAsStringList(int nIndex,
ICommonsList<String> aDefault)
Get a list of all attribute values with the same name.
|
default ICommonsList<String> |
IGetterByKeyTrait.getAsStringList(KEYTYPE aKey)
Get a list of all attribute values with the same name.
|
default ICommonsList<String> |
IGetterByKeyTrait.getAsStringList(KEYTYPE aKey,
ICommonsList<String> aDefault)
Get a list of all attribute values with the same name.
|
| Modifier and Type | Method and Description |
|---|---|
default ICommonsList<String> |
IGetterByIndexTrait.getAsStringList(int nIndex,
ICommonsList<String> aDefault)
Get a list of all attribute values with the same name.
|
default ICommonsList<String> |
IGetterByKeyTrait.getAsStringList(KEYTYPE aKey,
ICommonsList<String> aDefault)
Get a list of all attribute values with the same name.
|
| Modifier and Type | Class and Description |
|---|---|
class |
URLParameterList
A list of URL parameters with a sanity API.
|
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<String> |
URLParameterList.getAllParamValues(String sName) |
| Modifier and Type | Method and Description |
|---|---|
ICommonsOrderedMap<String,ICommonsList<String>> |
URLParameterList.getAsMultiMap() |
| Modifier and Type | Method and Description |
|---|---|
static ICommonsList<String> |
VendorInfo.getFileHeaderLines() |
Copyright © 2014–2019 Philip Helger. All rights reserved.