Index
All Classes and Interfaces|All Packages
A
- add(int, B) - Method in class com.saicone.types.util.WrappedList
- add(int, T) - Method in class com.saicone.types.iterator.ArrayIterator
-
Add value to array at specified index.
- add(B) - Method in class com.saicone.types.util.WrappedCollection
- add(B) - Method in class com.saicone.types.util.WrappedList.Iterator
- add(T) - Method in class com.saicone.types.iterator.ArrayIterator
- addAll(int, Collection<? extends B>) - Method in class com.saicone.types.util.WrappedList
- addAll(Collection<? extends B>) - Method in class com.saicone.types.util.WrappedCollection
- addAny(int, Object) - Method in class com.saicone.types.util.WrappedList
-
Same as
List.add(int, Object)
with any Object compatibility. - addAny(Object) - Method in class com.saicone.types.util.WrappedCollection
-
Same as
Collection.add(Object)
with any Object compatibility. - addAny(Object) - Method in class com.saicone.types.util.WrappedList.Iterator
-
Same as
ListIterator.add(Object)
with any Object compatibility. - addAnyAll(int, Collection<?>) - Method in class com.saicone.types.util.WrappedList
-
Same as
List.addAll(int, Collection)
with any Object compatibility. - addAnyAll(Collection<?>) - Method in class com.saicone.types.util.WrappedCollection
-
Same as
Collection.addAll(Collection)
with any Object compatibility. - addAnyFirst(Object) - Method in class com.saicone.types.util.WrappedDeque
-
Same as
Deque.addFirst(Object)
with any Object compatibility. - addAnyLast(Object) - Method in class com.saicone.types.util.WrappedDeque
-
Same as
Deque.addLast(Object)
with any Object compatibility. - addFirst(B) - Method in class com.saicone.types.util.WrappedDeque
- addLast(B) - Method in class com.saicone.types.util.WrappedDeque
- AllocParser<T> - Class in com.saicone.types.parser
-
Represents a parser that convert objects into an allocatable size object.
- AllocParser(Function<Integer, T>) - Constructor for class com.saicone.types.parser.AllocParser
-
Construct an allocatable size object parser with function that supply a newly generated object to fill.
- andThen(TypeParser<E>) - Method in interface com.saicone.types.TypeParser
-
Create a type parsed that get the result of current parser, and then parse any non-null result with the provided parser.
- andThen(Type, Function<T, E>) - Method in interface com.saicone.types.TypeParser
-
Create a type-checked parser that get the result of current parse, and then apply any non-null result with the provided function.
- AnnotatedTypeParser<T> - Interface in com.saicone.types
-
Represents a function that parse any annotated type of object and converts into value type.
- AnyEnum - Interface in com.saicone.types
-
Utility interface made for enums, to allow a flexible compatibility with other types.
- AnyIterable<T> - Interface in com.saicone.types
- AnyIterator<T> - Class in com.saicone.types
-
Abstract class to iterate into replaceable value.
- AnyIterator(Object) - Constructor for class com.saicone.types.AnyIterator
-
Constructs a type iterator.
- apply(Object) - Method in interface com.saicone.types.TypeParser
- array() - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as an array parser of its type.
- array(Function<Integer, A>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as an array parser of its type.
- ARRAY - Static variable in class com.saicone.types.Types
-
Array of objects type parser.
- ArrayIterator<T> - Class in com.saicone.types.iterator
-
Abstract class to iterate into any array.
Accepts any type of primitive and object array. - ArrayIterator(Object) - Constructor for class com.saicone.types.iterator.ArrayIterator
-
Constructs an array iterator with provided array object.
- ArrayIterator(Object, int) - Constructor for class com.saicone.types.iterator.ArrayIterator
-
Constructs an array iterator with provided array object and starting index.
- ArrayParser<T,
C> - Class in com.saicone.types.parser -
Represents a parser that convert objects into an array.
- ArrayParser(Class<C>, TypeParser<C>) - Constructor for class com.saicone.types.parser.ArrayParser
-
Constructs an array parser with defined parameters.
- ArrayParser(Function<Integer, T>, Class<C>, TypeParser<C>) - Constructor for class com.saicone.types.parser.ArrayParser
-
Constructs an array parser with defined parameters.
- as(Class<E>) - Method in interface com.saicone.types.AnyEnum
-
Get the current enum value as other enum type.
B
- BIG_DECIMAL - Static variable in interface com.saicone.types.parser.NumberParser
-
BigDecimal type parser.
- BIG_DECIMAL - Static variable in class com.saicone.types.Types
-
BigDecimal type parser.
- BIG_INTEGER - Static variable in interface com.saicone.types.parser.NumberParser
-
BigInteger type parser.
- BIG_INTEGER - Static variable in class com.saicone.types.Types
-
BigInteger type parser.
- BIT_SET - Static variable in class com.saicone.types.Types
-
BitSet type parser.
- BitSetParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any number representation of bitset.
- BitSetParser() - Constructor for class com.saicone.types.parser.BitSetParser
-
Construct a BitSet parser.
- BOOLEAN - Static variable in class com.saicone.types.Types
-
Boolean type parser.
- BooleanParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to Boolean.
This parser is also compatible with any boolean representation fromObject.toString()
and also interpret decimal values between ZERO and ONE astrue
following elasticity check from mathematical functions. - BooleanParser() - Constructor for class com.saicone.types.parser.BooleanParser
- BYTE - Static variable in interface com.saicone.types.parser.NumberParser
-
Byte type parser.
- BYTE - Static variable in class com.saicone.types.Types
-
Byte type parser.
C
- cast(Number) - Method in interface com.saicone.types.parser.NumberParser
-
Cast any number to required number type.
- ceiling(B) - Method in class com.saicone.types.util.WrappedSet.Navigable
- ceilingAny(Object) - Method in class com.saicone.types.util.WrappedSet.Navigable
-
Same as
NavigableSet.ceiling(Object)
with any Object compatibility. - CHAR - Static variable in class com.saicone.types.Types
-
Character type parser.
This parser extracts the first character from non-empty String value. - CLASS - Static variable in class com.saicone.types.Types
-
Class type parser.
- ClassParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any String representation of Class name.
This parser is compatible with qualified name, file path and class descriptor. - ClassParser(boolean, ClassLoader) - Constructor for class com.saicone.types.parser.ClassParser
-
Constructs a class parser with given parameters.
- clear() - Method in class com.saicone.types.util.WrappedCollection
- clear() - Method in class com.saicone.types.util.WrappedMap
- collection(Type, Function<Integer, C>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a collection parser of its type.
- collection(Type, Supplier<C>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a collection parser of its type.
- CollectionParser<T,
E> - Class in com.saicone.types.parser -
Represents a parser that convert objects into a collection.
- CollectionParser(Function<Integer, T>, TypeParser<E>) - Constructor for class com.saicone.types.parser.CollectionParser
-
Construct a collection parser with defined supplier and element parser.
- CollectionParser(Supplier<T>, TypeParser<E>) - Constructor for class com.saicone.types.parser.CollectionParser
-
Construct a collection parser with defined supplier and element parser.
- com.saicone.types - package com.saicone.types
-
This package provides the common type-related classes that are used across the project.
- com.saicone.types.annotation - package com.saicone.types.annotation
- com.saicone.types.iterator - package com.saicone.types.iterator
-
This package provides some special-case iterators which are used on
AnyIterable
. - com.saicone.types.parser - package com.saicone.types.parser
-
This package provides multiple implementations of
TypeParser
focused on java data types. - com.saicone.types.util - package com.saicone.types.util
-
This package provides utility classes to interact with other type-related classes.
- comparator() - Method in class com.saicone.types.util.WrappedQueue.Priority
-
Returns the comparator used to order the elements in this queue, or
null
if this queue is sorted according to the natural ordering of its elements. - comparator() - Method in class com.saicone.types.util.WrappedSet.Sorted
- completableFuture(Object) - Method in interface com.saicone.types.TypeParser
-
Convert parse function into a CompletableFuture with the given object to parse.
The return object also can throw NullPointerException if parser fails. - contains(Object) - Static method in class com.saicone.types.Types
-
Check if any type object is registered as parser key.
- contains(Object) - Method in class com.saicone.types.util.WrappedCollection
- containsAll(Collection<?>) - Method in class com.saicone.types.util.WrappedCollection
- containsKey(Object) - Method in class com.saicone.types.util.WrappedMap
- containsValue(Object) - Method in class com.saicone.types.util.WrappedMap
- create() - Method in class com.saicone.types.parser.AllocParser
-
Create an allocatable size object without a defined capacity.
- create(int) - Method in class com.saicone.types.parser.AllocParser
-
Create an allocatable size object with a defined capacity.
D
- descendingIterator() - Method in class com.saicone.types.util.WrappedDeque
- descendingIterator() - Method in class com.saicone.types.util.WrappedSet.Navigable
- descendingSet() - Method in class com.saicone.types.util.WrappedSet.Navigable
- DOUBLE - Static variable in interface com.saicone.types.parser.NumberParser
-
Double type parser.
- DOUBLE - Static variable in class com.saicone.types.Types
-
Double type parser.
E
- element() - Method in class com.saicone.types.util.WrappedQueue
- empty() - Static method in class com.saicone.types.TypeWrapper
-
Get a wrapper that don't do any type of conversion, any object passed on this wrapped will be cast as required type.
- Entry(Map.Entry<KeyA, ValueA>, TypeWrapper<KeyA, KeyB>, TypeWrapper<ValueA, ValueB>) - Constructor for class com.saicone.types.util.WrappedMap.Entry
-
Constructs an entry of key and value A with its types represented as key and value B.
- entrySet() - Method in class com.saicone.types.util.WrappedMap
- EnumParser<T> - Interface in com.saicone.types.parser
-
Represents a function that try to parse any type of object to enum type.
This parser is also compatible with enum ordinal, enum name and even other enum object by extracting ordinal value. - EnumParser.Static - Class in com.saicone.types.parser
- equals(Object) - Method in class com.saicone.types.TypeOf
- equals(Object) - Method in class com.saicone.types.util.WrappedObject
F
- FILE - Static variable in class com.saicone.types.Types
-
File type parser.
- FileParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to File.
This parser is compatible with Path and String separated by/
. - FileParser() - Constructor for class com.saicone.types.parser.FileParser
- first() - Method in interface com.saicone.types.AnyIterable
-
Convert the current type into the first object representation, this means that any object compatible with this instance will be iterated to get the first object.
- first() - Method in class com.saicone.types.util.WrappedSet.Sorted
- first(TypeParser<T>) - Static method in interface com.saicone.types.TypeParser
-
Create a type parser that accepts a
AnyIterable.first()
. - first(Type, TypeParser<T>) - Static method in interface com.saicone.types.TypeParser
-
Create a type parser with associated type that accepts a
AnyIterable.first()
. - FLOAT - Static variable in interface com.saicone.types.parser.NumberParser
-
Float type parser.
- FLOAT - Static variable in class com.saicone.types.Types
-
Float type parser.
- floor(B) - Method in class com.saicone.types.util.WrappedSet.Navigable
- floorAny(Object) - Method in class com.saicone.types.util.WrappedSet.Navigable
-
Same as
NavigableSet.floor(Object)
with any Object compatibility. - forName(String) - Method in class com.saicone.types.parser.ClassParser
-
Returns the
Class
object associated with the given string name, meaning this method is compatible with primitive types and readable array name declaration such asjava.lang.String[]
orint[][]
.
G
- get(int) - Method in class com.saicone.types.iterator.ArrayIterator
-
Returns the value of the indexed component in the specified array object.
- get(int) - Method in class com.saicone.types.util.WrappedList
- get(Object) - Method in class com.saicone.types.util.WrappedMap
- getAnnotated() - Method in class com.saicone.types.TypeOf
-
Get current annotated type object.
- getAnnotatedArguments() - Method in class com.saicone.types.TypeOf
-
Get a not-null array of annotated argument types.
- getArguments() - Method in class com.saicone.types.TypeOf
-
Get a not-null array of argument types.
- getArrayType(Class<?>) - Static method in class com.saicone.types.parser.ClassParser
-
Create an array class type for the given component type.
This method is almost compatible with every component type, only restricted by Java language itself. - getClassLoader() - Method in class com.saicone.types.parser.ClassParser
-
Get the class loaded used in this parser.
- getComponentParser() - Method in class com.saicone.types.parser.ArrayParser
-
Get the type parser to parse components.
- getComponentType() - Method in class com.saicone.types.parser.ArrayParser
-
Get the type associated with the component type of this array parser.
- getDelegated() - Method in class com.saicone.types.util.WrappedCollection
- getDelegated() - Method in class com.saicone.types.util.WrappedDeque
- getDelegated() - Method in class com.saicone.types.util.WrappedIterator
- getDelegated() - Method in class com.saicone.types.util.WrappedList
- getDelegated() - Method in class com.saicone.types.util.WrappedList.Iterator
- getDelegated() - Method in class com.saicone.types.util.WrappedMap.Entry
- getDelegated() - Method in class com.saicone.types.util.WrappedMap
- getDelegated() - Method in class com.saicone.types.util.WrappedObject
-
Get the delegated object that is wrapped in this instance.
- getDelegated() - Method in class com.saicone.types.util.WrappedObject2
-
Get the delegated object that is wrapped in this instance.
- getDelegated() - Method in class com.saicone.types.util.WrappedQueue
- getDelegated() - Method in class com.saicone.types.util.WrappedQueue.Priority
- getDelegated() - Method in class com.saicone.types.util.WrappedSet
- getDelegated() - Method in class com.saicone.types.util.WrappedSet.Navigable
- getDelegated() - Method in class com.saicone.types.util.WrappedSet.Sorted
- getElementParser() - Method in class com.saicone.types.parser.CollectionParser
-
Get the type parser to parse elements.
- getElementType() - Method in class com.saicone.types.parser.CollectionParser
-
Get the type associated with the elements that hold the object of this parser.
- getFirst() - Method in class com.saicone.types.util.WrappedDeque
- getFlags() - Method in class com.saicone.types.parser.PatternParser
-
Return the flags used to compile patterns.
- getKey() - Method in class com.saicone.types.util.WrappedMap.Entry
- getKeyParser() - Method in class com.saicone.types.parser.MapParser
-
Get the type parser to parse keys.
- getKeyType() - Method in class com.saicone.types.parser.MapParser
-
Get the type associated with the keys that hold the map of this parser.
- getLast() - Method in class com.saicone.types.util.WrappedDeque
- getMaxValue() - Method in interface com.saicone.types.parser.NumberParser
-
Get the maximum supported value by this parser.
- getMinValue() - Method in interface com.saicone.types.parser.NumberParser
-
Get the minimum supported value by this parser.
- getParameters() - Method in class com.saicone.types.TypeOf
-
Get the list of type arguments wrapped as TypeOf object.
- getRawType() - Method in class com.saicone.types.TypeOf
-
Get the raw class value from current type.
- getReadableName(String) - Static method in class com.saicone.types.parser.ClassParser
-
Convert any class name declaration into its readable name.
The result of this method may not be compatible withClass.forName(String)
, but is always compatible withClassParser.forName(String)
. - getSuffix() - Method in interface com.saicone.types.parser.NumberParser
-
Get the lowercase number suffix represented by this parser.
- getType() - Method in class com.saicone.types.parser.ArrayParser
- getType() - Method in class com.saicone.types.parser.BitSetParser
- getType() - Method in class com.saicone.types.parser.BooleanParser
- getType() - Method in class com.saicone.types.parser.ClassParser
- getType() - Method in class com.saicone.types.parser.CollectionParser
- getType() - Method in class com.saicone.types.parser.FileParser
- getType() - Method in class com.saicone.types.parser.ListParser
- getType() - Method in class com.saicone.types.parser.MapParser
- getType() - Method in class com.saicone.types.parser.PathParser
- getType() - Method in class com.saicone.types.parser.PatternParser
- getType() - Method in class com.saicone.types.parser.SetParser
- getType() - Method in class com.saicone.types.parser.UriParser
- getType() - Method in class com.saicone.types.parser.UrlParser
- getType() - Method in class com.saicone.types.parser.UuidParser
- getType() - Method in class com.saicone.types.TypeOf
- getType() - Method in interface com.saicone.types.TypeParser
-
Get the associated type object with this parser.
- getValue() - Method in interface com.saicone.types.AnyIterable
-
Get the object that can be iterated.
- getValue() - Method in class com.saicone.types.AnyIterator
-
Get the object to iterate.
- getValue() - Method in class com.saicone.types.util.WrappedMap.Entry
- getValueParser() - Method in class com.saicone.types.parser.MapParser
-
Get the type parser to parse values.
- getValueType() - Method in class com.saicone.types.parser.MapParser
-
Get the type associated with the values that hold the map of this parser.
- getWrapper() - Method in class com.saicone.types.util.WrappedObject
-
Get the current type wrapper that is used to represent delegated object as B and convert it back to A.
- getWrapperOne() - Method in class com.saicone.types.util.WrappedObject2
-
Get the current type wrapper that is used to represent delegated B1 type and convert it back to A1 type.
- getWrapperTwo() - Method in class com.saicone.types.util.WrappedObject2
-
Get the current type wrapper that is used to represent delegated B2 type and convert it back to A2 type.
H
- hashCode() - Method in class com.saicone.types.TypeOf
- hashCode() - Method in class com.saicone.types.util.WrappedObject
- hasNext() - Method in class com.saicone.types.iterator.ArrayIterator
- hasNext() - Method in class com.saicone.types.iterator.SingleIterator
- hasNext() - Method in class com.saicone.types.util.WrappedIterator
- hasPrevious() - Method in class com.saicone.types.iterator.ArrayIterator
- hasPrevious() - Method in class com.saicone.types.util.WrappedList.Iterator
- headSet(B) - Method in class com.saicone.types.util.WrappedSet.Sorted
- headSet(B, boolean) - Method in class com.saicone.types.util.WrappedSet.Navigable
- higher(B) - Method in class com.saicone.types.util.WrappedSet.Navigable
- higherAny(Object) - Method in class com.saicone.types.util.WrappedSet.Navigable
-
Same as
NavigableSet.higher(Object)
with any Object compatibility.
I
- indexOf(Object) - Method in class com.saicone.types.util.WrappedList
- instance() - Static method in class com.saicone.types.parser.PatternParser
-
PatternParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.BitSetParser
-
BitSetParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.BooleanParser
-
BooleanParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.ClassParser
-
ClassParser
public instance that doesn't initialize classes. - INSTANCE - Static variable in class com.saicone.types.parser.FileParser
-
FileParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.PathParser
-
PathParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.PatternAnnotatedParser
-
PatternAnnotatedParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.PatternParser
-
PatternParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.UriParser
-
UriParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.UrlParser
-
UrlParser
public instance. - INSTANCE - Static variable in class com.saicone.types.parser.UuidParser
-
UuidParser
public instance. - INTEGER - Static variable in interface com.saicone.types.parser.NumberParser
-
Integer type parser.
- INTEGER - Static variable in class com.saicone.types.Types
-
Integer type parser.
- isArray() - Method in class com.saicone.types.TypeOf
-
Check if current type is an array type.
- isBigHolder() - Method in interface com.saicone.types.parser.NumberParser
-
Check if this parser is for big numbers such as BigInteger or BigDecimal.
- isComponentInstance(Object) - Method in class com.saicone.types.parser.ArrayParser
-
Check if the given object is instance of component parser type.
- isDecimalHolder() - Method in interface com.saicone.types.parser.NumberParser
-
Check if this parser allows decimal numbers such as BigDecimal, Double or Float.
- isElementInstance(Object) - Method in class com.saicone.types.parser.CollectionParser
-
Check if the given object is instance of element parser type.
- isEmpty() - Method in class com.saicone.types.util.WrappedCollection
- isEmpty() - Method in class com.saicone.types.util.WrappedMap
- isInitialize() - Method in class com.saicone.types.parser.ClassParser
-
Get initialization state of this parser.
- isInRange(Number) - Method in interface com.saicone.types.parser.NumberParser
-
Check if the provided number is in range to be pársed as current type.
- isInstance(Object) - Method in class com.saicone.types.parser.CollectionParser
- isInstance(Object) - Method in class com.saicone.types.parser.MapParser
- isInstance(Object) - Method in class com.saicone.types.TypeOf
- isInstance(Object) - Method in interface com.saicone.types.TypeParser
-
Check if the given object is instance of parser type.
- isIterable() - Method in interface com.saicone.types.AnyIterable
-
Check if the current object can be iterated using for statement.
This condition can be applied to anyIterable
type, map or array. - isKeyInstance(Object) - Method in class com.saicone.types.parser.MapParser
-
Check if the given object is instance of key parser type.
- isListIterable() - Method in interface com.saicone.types.AnyIterable
-
Check if the current object can return a
ListIterator
onAnyIterable.listIterator()
.
This condition can be applied to anyList
type or array. - isNotIterable() - Method in interface com.saicone.types.AnyIterable
-
Same has
AnyIterable.isIterable()
but with inverted result. - isNotListIterable() - Method in interface com.saicone.types.AnyIterable
-
Same has
AnyIterable.isListIterable()
but with inverted result. - isNotNull() - Method in class com.saicone.types.TypeOf
-
Check if current type is annotated as not-null object.
- isNullable() - Method in class com.saicone.types.TypeOf
-
Check if current type is annotated as nullable object.
- isObjectArray() - Method in class com.saicone.types.iterator.ArrayIterator
-
Check if the current array iterator corresponds to an object array.
- isParameterized() - Method in class com.saicone.types.TypeOf
-
Check if current type is a parameterized type.
- isPrimitive() - Method in class com.saicone.types.TypeOf
-
Check if current type is a primitive class type.
- isRaw() - Method in class com.saicone.types.TypeOf
-
Check if current type is a class type.
- isSimilar(WrappedObject<?, ?>) - Method in class com.saicone.types.util.WrappedObject
-
Check if the provided wrapped object is similar to current wrapped object.
- isSimilar(WrappedObject2<?, ?, ?, ?>) - Method in class com.saicone.types.util.WrappedObject2
-
Check if the provided wrapped object is similar to current wrapped object.
- isValid(String) - Static method in class com.saicone.types.parser.BooleanParser
-
Check if the provided string is a valid boolean representation.
This method doesn't check for number representations. - isValueInstance(Object) - Method in class com.saicone.types.parser.MapParser
-
Check if the given object is instance of value parser type.
- iterator() - Method in interface com.saicone.types.AnyIterable
- iterator() - Method in class com.saicone.types.util.WrappedCollection
- Iterator(ListIterator<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedList.Iterator
-
Constructs a list iterator of type A with its types represented as B.
K
- keySet() - Method in class com.saicone.types.util.WrappedMap
L
- last() - Method in interface com.saicone.types.AnyIterable
-
Get from current type the last available object, this method is only compatible with list and array values.
- last() - Method in class com.saicone.types.util.WrappedSet.Sorted
- lastIndexOf(Object) - Method in class com.saicone.types.util.WrappedList
- list() - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a list parser of its type.
- list(Function<Integer, List<T>>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a list parser of its type.
- list(Supplier<List<T>>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a list parser of its type.
- LIST - Static variable in class com.saicone.types.Types
-
List of objects type parser.
- listIterator() - Method in interface com.saicone.types.AnyIterable
-
Return a list iterator over the elements of the current value
This method can return a properly made list iterator if the current value is a list or an array. - listIterator() - Method in class com.saicone.types.util.WrappedList
- listIterator(int) - Method in interface com.saicone.types.AnyIterable
-
Return a list iterator over the elements of the current value, starting at the specified position in the value.
This method can return a properly made list iterator if the current value is a list or an array. - listIterator(int) - Method in class com.saicone.types.util.WrappedList
- ListParser<E> - Class in com.saicone.types.parser
-
Represents a parser that convert objects into a list.
- ListParser(Function<Integer, List<E>>, TypeParser<E>) - Constructor for class com.saicone.types.parser.ListParser
-
Construct a list parser with defined supplier and element parser.
- ListParser(Supplier<List<E>>, TypeParser<E>) - Constructor for class com.saicone.types.parser.ListParser
-
Construct a list parser with defined supplier and element parser.
- LOCAL_DATE - Static variable in interface com.saicone.types.parser.TemporalParser
-
TemporalParser
for LocalDate values.
This parser accept any ISO-8601 String or Number array with date values. - LOCAL_DATE - Static variable in class com.saicone.types.Types
-
LocalDate type parser.
- LOCAL_DATE_TIME - Static variable in interface com.saicone.types.parser.TemporalParser
-
TemporalParser
for LocalDateTime values.
This parser accept any ISO-8601 String separated byT
with time formathour:minute:second.nanoOfSecond
or Number array with date time values. - LOCAL_DATE_TIME - Static variable in class com.saicone.types.Types
-
LocalDateTime parser type.
- LOCAL_TIME - Static variable in interface com.saicone.types.parser.TemporalParser
-
TemporalParser
for LocalTime values.
This parser accept any String with the formathour:minute:second.nanoOfSecond
or Number array with time values. - LOCAL_TIME - Static variable in class com.saicone.types.Types
-
LocalTime parser type.
- LONG - Static variable in interface com.saicone.types.parser.NumberParser
-
Long type parser.
- LONG - Static variable in class com.saicone.types.Types
-
Long type parser.
- lower(B) - Method in class com.saicone.types.util.WrappedSet.Navigable
- lowerAny(Object) - Method in class com.saicone.types.util.WrappedSet.Navigable
-
Same as
NavigableSet.lower(Object)
with any Object compatibility.
M
- MAP - Static variable in class com.saicone.types.Types
-
Map of objects type parser.
This is the most typical Map format to save data. - MapParser<K,
V> - Class in com.saicone.types.parser -
Represents a parser that convert objects into a map.
- MapParser(Function<Integer, Map<K, V>>, TypeParser<K>, TypeParser<V>) - Constructor for class com.saicone.types.parser.MapParser
-
Constructs a map parser with defined parameters.
- MapParser(Supplier<Map<K, V>>, TypeParser<K>, TypeParser<V>) - Constructor for class com.saicone.types.parser.MapParser
-
Constructs a map parser with defined parameters.
N
- Navigable(NavigableSet<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedSet.Navigable
-
Constructs a navigable set of type A with its types represented as B.
- next() - Method in class com.saicone.types.iterator.ArrayIterator
- next() - Method in class com.saicone.types.iterator.SingleIterator
- next() - Method in class com.saicone.types.util.WrappedIterator
- nextIndex() - Method in class com.saicone.types.iterator.ArrayIterator
- nextIndex() - Method in class com.saicone.types.util.WrappedList.Iterator
- NUMBER - Static variable in interface com.saicone.types.parser.NumberParser
-
Number type parser.
- NUMBER - Static variable in class com.saicone.types.Types
-
Number type parser.
- NumberParser<T> - Interface in com.saicone.types.parser
-
Represents a function that try to parse any type of object to number type.
This parser is also compatible with boolean and some popular string representation of numbers like binary (0[bB][0-1]
), hex (0[xX#][0-9A-Fa-f]
), octal (0[0-7]
), leading sings (+ -
), unsigned suffix (u
) and number suffixes (b B s S i I f F l L d D
).
Including safe-checks for min and max values, and safe conversion with big numbers.
O
- OBJECT - Static variable in class com.saicone.types.Types
-
Type parser to return any object itself.
- of(boolean[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive boolean array.
- of(byte[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive byte array.
- of(char[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive char array.
- of(double[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive double array.
- of(float[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive float array.
- of(int[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive int array.
- of(long[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive long array.
- of(short[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with primitive short array.
- of(TypeParser<A>, TypeParser<B>) - Static method in class com.saicone.types.TypeWrapper
-
Create a wrapper that parse type A using
TypeWrapper.unwrap(Object)
and parse type B usingTypeWrapper.wrap(Object)
. - of(TypeParser<C>) - Static method in class com.saicone.types.parser.ArrayParser
-
Create an array parser using element parser.
- of(TypeParser<E>) - Static method in class com.saicone.types.parser.ListParser
-
Create a list parser using element parser.
- of(TypeParser<E>) - Static method in class com.saicone.types.parser.SetParser
-
Create a set parser using element parser.
- of(TypeParser<K>, TypeParser<V>) - Static method in class com.saicone.types.parser.MapParser
-
Create a map parser using key and value parser.
- of(Class<C>) - Static method in class com.saicone.types.parser.ArrayParser
-
Create an array parser using component type.
- of(Class<T>) - Static method in interface com.saicone.types.parser.EnumParser
-
Create an enum type parser that convert any object into provided enum class type.
- of(Class<T>) - Static method in class com.saicone.types.Types
-
Get the previously registered type parser from class type.
- of(Class<T>, T[]) - Static method in interface com.saicone.types.parser.EnumParser
-
Create an enum type parser that convert any object into provided enum class type using provided array of enum values.
- of(ClassLoader) - Static method in class com.saicone.types.parser.ClassParser
-
Create a class parser with given class loader.
This method creates a class parser that doesn't initialize classes. - of(Iterable<E>) - Static method in interface com.saicone.types.AnyIterable
-
Create an iterable type that can remove objects from provided iterable parameter.
- of(Object) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type object.
- of(Object) - Static method in class com.saicone.types.iterator.ArrayIterator
-
Create a read-only array iterator.
- of(Object) - Static method in class com.saicone.types.Types
-
Get the previously registered type parser from object type.
- of(Object, TypeParser<T>) - Static method in class com.saicone.types.iterator.ArrayIterator
-
Create a read-only array iterator with associated type parser.
- of(Type, char, T, T, Function<Number, T>, BiFunction<String, Integer, T>) - Static method in interface com.saicone.types.parser.NumberParser
-
Crate a number type parser with associated type that return a number type.
- of(Type, TypeParser<T>) - Static method in interface com.saicone.types.TypeParser
-
Create a type parser with associated type.
- of(Map<K, V>) - Static method in interface com.saicone.types.AnyIterable
-
Create an iterable type that can remove objects from provided map.
- of(T[]) - Static method in interface com.saicone.types.AnyIterable
-
Create a read-only iterable type with object array.
- ofAny(Object) - Static method in interface com.saicone.types.AnyIterable
-
Create an unchecked iterable type from any object.
- offer(B) - Method in class com.saicone.types.util.WrappedQueue
- offerAny(Object) - Method in class com.saicone.types.util.WrappedQueue
-
Same as
Queue.offer(Object)
with any Object compatibility. - offerAnyFirst(Object) - Method in class com.saicone.types.util.WrappedDeque
-
Same as
Deque.offerFirst(Object)
with any Object compatibility. - offerAnyLast(Object) - Method in class com.saicone.types.util.WrappedDeque
-
Same as
Deque.offerLast(Object)
with any Object compatibility. - offerFirst(B) - Method in class com.saicone.types.util.WrappedDeque
- offerLast(B) - Method in class com.saicone.types.util.WrappedDeque
- optional(Class<T>, Object) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type and save into Optional object, an empty optional is return when parse fails or throw exception.
This method also checks if the object is instance of given class type. - optional(Object) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type and save into Optional object, an empty optional is return when parse fails or throw exception.
P
- parse(int) - Method in interface com.saicone.types.parser.EnumParser
-
Parses the given ordinal number as required enum type.
- parse(Class<T>, Object) - Static method in class com.saicone.types.Types
-
Parse any object by providing a type class to find previously registered type parser.
This method can also parse into primitive class objects and instead of null the failed value to return will be MIN value for number types, FALSE for boolean and empty for char. - parse(Class<T>, Object, T) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type with a default return value if parsed value is null.
This method also checks if the object is instance of given class type. - parse(Class<T>, Object, T) - Static method in class com.saicone.types.Types
-
Parse any object by providing a type class to find previously registered type parser.
This method can also parse into primitive class objects and instead of default object the failed value to return will be MIN value for number types, FALSE for boolean and empty for char. - parse(Object) - Method in interface com.saicone.types.AnnotatedTypeParser
- parse(Object) - Method in class com.saicone.types.parser.BooleanParser
- parse(Object) - Method in class com.saicone.types.parser.ClassParser
- parse(Object) - Method in interface com.saicone.types.parser.EnumParser
- parse(Object) - Method in class com.saicone.types.parser.FileParser
- parse(Object) - Method in interface com.saicone.types.parser.NumberParser
- parse(Object) - Method in class com.saicone.types.parser.PathParser
- parse(Object) - Method in class com.saicone.types.parser.PatternParser
- parse(Object) - Method in interface com.saicone.types.parser.TemporalParser
- parse(Object) - Method in class com.saicone.types.parser.UriParser
- parse(Object) - Method in class com.saicone.types.parser.UrlParser
- parse(Object) - Method in class com.saicone.types.parser.UuidParser
- parse(Object) - Method in class com.saicone.types.TypeOf
- parse(Object) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type.
- parse(Object, Object) - Static method in class com.saicone.types.Types
-
Parse any object by providing a type class to find previously registered type parser.
- parse(Object, Object, T) - Static method in class com.saicone.types.Types
-
Parse any object by providing a type object to find previously registered type parser.
- parse(String) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given string argument as required number type.
This method allows various types of number formats. - parse(Object) - Method in class com.saicone.types.parser.ArrayParser
- parse(Object) - Method in class com.saicone.types.parser.BitSetParser
- parse(Object) - Method in class com.saicone.types.parser.CollectionParser
- parse(Object) - Method in class com.saicone.types.parser.MapParser
- parse(Object, T) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type with a default return value if parsed value is null.
- parse(AnnotatedType, Object) - Method in interface com.saicone.types.AnnotatedTypeParser
-
Parse the given object into required type.
- parse(AnnotatedType, Object) - Method in class com.saicone.types.parser.PatternAnnotatedParser
- parse(AnnotatedType, Object, T) - Method in interface com.saicone.types.AnnotatedTypeParser
-
Parse the given object into required type with a default return value if parsed value is null.
- parseBoolean(Number) - Method in class com.saicone.types.parser.BooleanParser
-
Parse the given Number as Boolean using ZERO as
false
and ONE astrue
.
This method also interpret decimal values between ZERO and ONE astrue
following elasticity check from mathematical functions. - parseBoolean(String) - Method in class com.saicone.types.parser.BooleanParser
-
Parse the given String as Number.
This method accept any String representation of:
true | false
t | f
1 | 0
yes | no
on | off
y | n
- parseEach(Object, BiFunction<Object, TypeParser<C>, C>) - Method in class com.saicone.types.parser.ArrayParser
-
Parse the provided object into required type by converting each applicable component using defined function.
- parseEach(Object, BiFunction<Object, TypeParser<E>, E>) - Method in class com.saicone.types.parser.CollectionParser
-
Parse the provided object into required type by converting each applicable element using defined function.
- parseEach(Object, BiFunction<Object, TypeParser<K>, K>, BiFunction<Object, TypeParser<V>, V>) - Method in class com.saicone.types.parser.MapParser
-
Parse the provided object into required type by converting each applicable entry using defined function.
- parseNumber(boolean) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given boolean argument as required number type.
- parseNumber(Enum<?>) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given enum argument as required number type.
- parseNumber(Number) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given number argument as required number type.
This method check any out of range number. - parseNumber(String) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given string argument as required number type.
- parseNumber(String, int) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given string argument as required number type in the radix specified by the second argument.
- parseOrDefault(Class<T>, Object, T) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type with a default return value if parsed value is null or the conversion generates an exception.
This method also checks if the object is instance of given class type. - parseOrDefault(Object, T) - Method in interface com.saicone.types.TypeParser
-
Parse the given object into required type with a default return value if parsed value is null or the conversion generates an exception.
- parseOrDefault(AnnotatedType, Object, T) - Method in interface com.saicone.types.AnnotatedTypeParser
-
Parse the given object into required type with a default return value if parsed value is null or the conversion generates an exception.
- parseTemporal(ArrayIterator<Integer>) - Method in interface com.saicone.types.parser.TemporalParser
-
Parses the given int array iterator as required temporal type.
- parseTemporal(Number) - Method in interface com.saicone.types.parser.TemporalParser
-
Parses the given number argument as required temporal type.
- parseTemporal(String) - Method in interface com.saicone.types.parser.TemporalParser
-
Parses the given formatted string argument as required temporal type.
- parseUnsignedNumber(String) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given string argument as an unsigned required number type.
- parseUnsignedNumber(String, int) - Method in interface com.saicone.types.parser.NumberParser
-
Parses the given string argument as an unsigned required number type in the radix specified by the second argument.
- parseUuid(ArrayIterator<?>) - Method in class com.saicone.types.parser.UuidParser
-
Parses the given array iterator as UUID.
Accepts 2-length long array representation of mostSigBits-leastSigBits, and 4-length int array. - parseUuid(String) - Method in class com.saicone.types.parser.UuidParser
-
Parses the given string as UUID.
Accepts 36-length string (with dashes) and 32-length string (without dashes). - PATH - Static variable in class com.saicone.types.Types
-
Path type parser.
- PathParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to Path.
This parser is compatible with File and String separated by/
. - PathParser() - Constructor for class com.saicone.types.parser.PathParser
- PATTERN - Static variable in class com.saicone.types.Types
-
Pattern type parser.
- PatternAnnotatedParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any String representation of Pattern, compatible with any type annotated with
PatternFlags
. - PatternAnnotatedParser() - Constructor for class com.saicone.types.parser.PatternAnnotatedParser
- PatternFlags - Annotation Interface in com.saicone.types.annotation
-
An annotated type with PatternFlags claims that any parsed value must have the declared flags.
- PatternParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any String representation of Pattern.
- PatternParser() - Constructor for class com.saicone.types.parser.PatternParser
-
Create a patter parser with default options.
- PatternParser(int) - Constructor for class com.saicone.types.parser.PatternParser
-
Create a pattern parser with given flags to compile patterns.
- peek() - Method in class com.saicone.types.util.WrappedQueue
- peekFirst() - Method in class com.saicone.types.util.WrappedDeque
- peekLast() - Method in class com.saicone.types.util.WrappedDeque
- poll() - Method in class com.saicone.types.util.WrappedQueue
- pollFirst() - Method in class com.saicone.types.util.WrappedDeque
- pollFirst() - Method in class com.saicone.types.util.WrappedSet.Navigable
- pollLast() - Method in class com.saicone.types.util.WrappedDeque
- pollLast() - Method in class com.saicone.types.util.WrappedSet.Navigable
- pop() - Method in class com.saicone.types.util.WrappedDeque
- previous() - Method in class com.saicone.types.iterator.ArrayIterator
- previous() - Method in class com.saicone.types.util.WrappedList.Iterator
- previousIndex() - Method in class com.saicone.types.iterator.ArrayIterator
- previousIndex() - Method in class com.saicone.types.util.WrappedList.Iterator
- Priority(PriorityQueue<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedQueue.Priority
-
Constructs a priority queue of type A with its types represented as B.
- push(B) - Method in class com.saicone.types.util.WrappedDeque
- pushAny(Object) - Method in class com.saicone.types.util.WrappedDeque
-
Same as
Deque.push(Object)
with any Object compatibility. - put(Class<T>, TypeParser<T>) - Static method in class com.saicone.types.Types
-
Register provided type parser associated by class type.
- put(Object, TypeParser<T>) - Static method in class com.saicone.types.Types
-
Register provided type parser associated with type object.
- put(KeyB, ValueB) - Method in class com.saicone.types.util.WrappedMap
- putAll(Map<? extends KeyB, ? extends ValueB>) - Method in class com.saicone.types.util.WrappedMap
- putAny(Object, Object) - Method in class com.saicone.types.util.WrappedMap
-
Same as
Map.put(Object, Object)
with any Object compatibility. - putAnyAll(Map<?, ?>) - Method in class com.saicone.types.util.WrappedMap
-
Same as
Map.putAll(Map)
with any Object compatibility.
R
- remove() - Method in class com.saicone.types.iterator.ArrayIterator
- remove() - Method in class com.saicone.types.iterator.SingleIterator
- remove() - Method in class com.saicone.types.util.WrappedIterator
- remove() - Method in class com.saicone.types.util.WrappedQueue
- remove(int) - Method in class com.saicone.types.iterator.ArrayIterator
-
Remove value form array at specified index.
- remove(int) - Method in class com.saicone.types.util.WrappedList
- remove(Object) - Static method in class com.saicone.types.Types
-
Remove any registered type parsed associated by object.
- remove(Object) - Method in class com.saicone.types.util.WrappedCollection
- remove(Object) - Method in class com.saicone.types.util.WrappedMap
- removeAll(Collection<?>) - Method in class com.saicone.types.util.WrappedCollection
- removeFirst() - Method in class com.saicone.types.util.WrappedDeque
- removeFirstOccurrence(Object) - Method in class com.saicone.types.util.WrappedDeque
- removeLast() - Method in class com.saicone.types.util.WrappedDeque
- removeLastOccurrence(Object) - Method in class com.saicone.types.util.WrappedDeque
- retainAll(Collection<?>) - Method in class com.saicone.types.util.WrappedCollection
S
- set() - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a set parser of its type.
- set(int, B) - Method in class com.saicone.types.util.WrappedList
- set(int, T) - Method in class com.saicone.types.iterator.ArrayIterator
-
Set value to array at specified index.
- set(B) - Method in class com.saicone.types.util.WrappedList.Iterator
- set(Function<Integer, Set<T>>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a set parser of its type.
- set(Supplier<Set<T>>) - Method in interface com.saicone.types.TypeParser
-
Get a view of this type parser as a set parser of its type.
- set(T) - Method in class com.saicone.types.iterator.ArrayIterator
- SET - Static variable in class com.saicone.types.Types
-
Set of objects type parser.
- setAny(int, Object) - Method in class com.saicone.types.util.WrappedList
-
Same as
List.set(int, Object)
with any Object compatibility. - setAny(Object) - Method in class com.saicone.types.util.WrappedList.Iterator
-
Same as
ListIterator.set(Object)
with any Object compatibility. - setAnyValue(Object) - Method in class com.saicone.types.util.WrappedMap.Entry
-
Same as
Map.Entry.setValue(Object)
with any Object compatibility. - SetParser<E> - Class in com.saicone.types.parser
-
Represents a parser that convert objects into a set.
- SetParser(Function<Integer, Set<E>>, TypeParser<E>) - Constructor for class com.saicone.types.parser.SetParser
-
Construct a set parser with defined supplier and element parser.
- SetParser(Supplier<Set<E>>, TypeParser<E>) - Constructor for class com.saicone.types.parser.SetParser
-
Construct a set parser with defined supplier and element parser.
- setValue(Object) - Method in interface com.saicone.types.AnyIterable
-
Set the object that can be iterated.
- setValue(Object) - Method in class com.saicone.types.AnyIterator
-
Replace the current object.
- setValue(ValueB) - Method in class com.saicone.types.util.WrappedMap.Entry
- SHORT - Static variable in interface com.saicone.types.parser.NumberParser
-
Short type parser.
- SHORT - Static variable in class com.saicone.types.Types
-
Short type parser.
- single() - Method in interface com.saicone.types.AnyIterable
-
Convert the current type into a single object representation, this means that any iterable object will be converted into single object by taking the first iterated value.
- single(TypeParser<T>) - Static method in interface com.saicone.types.TypeParser
-
Create a type parser that accepts a
AnyIterable.single()
. - single(Type, TypeParser<T>) - Static method in interface com.saicone.types.TypeParser
-
Create a type parser with associated type that accepts a
AnyIterable.single()
. - SingleIterator<T> - Class in com.saicone.types.iterator
-
Abstract class to iterate into single replaceable object.
- SingleIterator(Object) - Constructor for class com.saicone.types.iterator.SingleIterator
-
Constructs a single object iterator.
- size() - Method in interface com.saicone.types.AnyIterable
-
Get the size of the current object.
- size() - Method in class com.saicone.types.iterator.ArrayIterator
-
Returns the length of the specified array object, as an int.
- size() - Method in class com.saicone.types.util.WrappedCollection
- size() - Method in class com.saicone.types.util.WrappedMap
- Sorted(SortedSet<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedSet.Sorted
-
Constructs a sorted set of type A with its types represented as B.
- Static() - Constructor for class com.saicone.types.parser.EnumParser.Static
- STRING - Static variable in class com.saicone.types.Types
-
String type parser.
- subList(int, int) - Method in class com.saicone.types.util.WrappedList
- subSet(B, boolean, B, boolean) - Method in class com.saicone.types.util.WrappedSet.Navigable
- subSet(B, B) - Method in class com.saicone.types.util.WrappedSet.Sorted
- supplyAsync(Object) - Method in interface com.saicone.types.TypeParser
-
Convert parse function into a CompletableFuture that is asynchronously completed with the given object to parse.
The return object also can throw NullPointerException if parser fails. - supplyAsync(Object, Executor) - Method in interface com.saicone.types.TypeParser
-
Convert parse function into a CompletableFuture that is asynchronously completed with the given object to parse.
The return object also can throw NullPointerException if parser fails.
T
- tailSet(B) - Method in class com.saicone.types.util.WrappedSet.Sorted
- tailSet(B, boolean) - Method in class com.saicone.types.util.WrappedSet.Navigable
- TemporalParser<T> - Interface in com.saicone.types.parser
-
Represents an interface that try to parse any object type to temporal object instance.
This parser is also compatible with Number, formatted String and array representation of constructor arguments for required temporal type object. - TEXT - Static variable in class com.saicone.types.Types
-
Text type parser, instead of
Types.STRING
this parser callsArrays.toString(Object[])
if the provided object is instance of object array. - toArray() - Method in class com.saicone.types.util.WrappedCollection
- toArray(T[]) - Method in class com.saicone.types.util.WrappedCollection
- toString() - Method in class com.saicone.types.TypeOf
- toString() - Method in class com.saicone.types.util.WrappedObject
- TypeOf<T> - Class in com.saicone.types
-
Represents an automatic detection type parser that retrieves the provided type parameter at runtime.
This object also has methods to interact along with annotated type. - TypeOf() - Constructor for class com.saicone.types.TypeOf
-
Constructs a TypeOf object that extracts annotated type at runtime.
- TypeOf(AnnotatedType) - Constructor for class com.saicone.types.TypeOf
-
Constructs a TypeOf object with provided annotated type.
- TypeParser<T> - Interface in com.saicone.types
-
Represents a function that parse any type of object and converts into value type.
- Types - Class in com.saicone.types
-
Utility class to collect common and registrable type parsers.
- TypeWrapper<A,
B> - Class in com.saicone.types -
Abstract class to apply lazy conversions between type of objects.
- TypeWrapper() - Constructor for class com.saicone.types.TypeWrapper
U
- unwrap(TypeParser<A>) - Static method in class com.saicone.types.TypeWrapper
-
Create a wrapper that parse type A using
TypeWrapper.unwrap(Object)
and cast any type to type B usingTypeWrapper.wrap(Object)
. - unwrap(Object) - Method in class com.saicone.types.TypeWrapper
-
Convert provided object into type A, this method is mostly known to bring back type A from B representation.
- unwrap(Object) - Method in class com.saicone.types.util.WrappedObject
-
Unwrap the provided object as type A, mostly known as a conversion to bring back type B as A.
- unwrapOne(Object) - Method in class com.saicone.types.util.WrappedObject2
-
Unwrap the provided object as A1 type, mostly known as a conversion to bring back B1 type as A1 type.
- unwrapTwo(Object) - Method in class com.saicone.types.util.WrappedObject2
-
Unwrap the provided object as A2 type, mostly known as a conversion to bring back B2 type as A2 type.
- URI - Static variable in class com.saicone.types.Types
-
URI type parser.
- UriParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to URI.
This parser is compatible with File, Path, URL and String object types. - UriParser() - Constructor for class com.saicone.types.parser.UriParser
- URL - Static variable in class com.saicone.types.Types
-
URL type parser.
- UrlParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to URL.
This parser is compatible with File, Path, URI and String object types. - UrlParser() - Constructor for class com.saicone.types.parser.UrlParser
- UUID - Static variable in class com.saicone.types.Types
-
Unique ID type parser.
- UuidParser - Class in com.saicone.types.parser
-
Represents a parser that try to convert any object type to UUID.
This parser is also compatible with 32-length string (without dashes), 36-length string (with dashes), 2-length long array and 4-length int array.
Take in count that any array type is accepted, and it's content will be parsed usingTypes.INTEGER
orTypes.LONG
. - UuidParser() - Constructor for class com.saicone.types.parser.UuidParser
V
- value - Variable in class com.saicone.types.AnyIterator
-
The iterated object.
- value() - Element in annotation interface com.saicone.types.annotation.PatternFlags
-
Array of match flags, every value must be a bit mask that that may include
Pattern.CASE_INSENSITIVE
,Pattern.MULTILINE
,Pattern.DOTALL
,Pattern.UNICODE_CASE
,Pattern.CANON_EQ
,Pattern.UNIX_LINES
,Pattern.LITERAL
,Pattern.UNICODE_CHARACTER_CLASS
andPattern.COMMENTS
- values() - Method in interface com.saicone.types.parser.EnumParser
-
Returns an array containing the constants of the enum type used by this parser.
- values() - Method in class com.saicone.types.util.WrappedMap
W
- wrap(TypeParser<B>) - Static method in class com.saicone.types.TypeWrapper
-
Create a wrapper that parse type B using
TypeWrapper.wrap(Object)
and cast any type to type A usingTypeWrapper.unwrap(Object)
. - wrap(Object) - Method in class com.saicone.types.TypeWrapper
-
Convert provided object into type B, this method is mostly known to represent type A as B.
- wrap(Object) - Method in class com.saicone.types.util.WrappedObject
-
Wrap the provided object as type B, mostly known as a conversion to represent type A as B.
- wrapOne(Object) - Method in class com.saicone.types.util.WrappedObject2
-
Wrap the provided object as B1 type, mostly known as a conversion to represent A1 type as B1 type.
- WrappedCollection<A,
B> - Class in com.saicone.types.util -
Represents a
Collection
of type A as aCollection
of type B. - WrappedCollection(Collection<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedCollection
-
Constructs a collection of type A with its types represented as B.
- WrappedDeque<A,
B> - Class in com.saicone.types.util - WrappedDeque(Deque<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedDeque
-
Constructs a deque of type A with its types represented as B.
- WrappedIterator<A,
B> - Class in com.saicone.types.util - WrappedIterator(Iterator<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedIterator
-
Constructs an iterator of type A with its types represented as B.
- WrappedList<A,
B> - Class in com.saicone.types.util - WrappedList(List<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedList
-
Constructs a list of type A with its types represented as B.
- WrappedList.Iterator<A,
B> - Class in com.saicone.types.util -
Represents a
ListIterator
of type A as aListIterator
of type B. - WrappedMap<KeyA,
KeyB, - Class in com.saicone.types.utilValueA, ValueB> - WrappedMap(Map<KeyA, ValueA>, TypeWrapper<KeyA, KeyB>, TypeWrapper<ValueA, ValueB>) - Constructor for class com.saicone.types.util.WrappedMap
-
Constructs a map of key and value A with its types represented as key and value B.
- WrappedMap.Entry<KeyA,
KeyB, - Class in com.saicone.types.utilValueA, ValueB> - WrappedObject<A,
B> - Class in com.saicone.types.util -
Represents an Object type A that can be converted to type B.
- WrappedObject(Object, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedObject
-
Constructs a wrapped object with provided delegated object and type wrapper.
- WrappedObject2<OneA,
OneB, - Class in com.saicone.types.utilTwoA, TwoB> -
Represents a two-dimensional Object with its respective type A1 and A2 that can be converted to type B1 and B2.
The name of this class is a convention in this library to allow an easy understand about wrapped objects with two type parameters. - WrappedObject2(Object, TypeWrapper<OneA, OneB>, TypeWrapper<TwoA, TwoB>) - Constructor for class com.saicone.types.util.WrappedObject2
-
Constructs a wrapped two-dimensional object with provided delegated object and type wrappers.
- WrappedQueue<A,
B> - Class in com.saicone.types.util - WrappedQueue(Queue<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedQueue
-
Constructs a queue of type A with its types represented as B.
- WrappedQueue.Priority<A,
B> - Class in com.saicone.types.util -
Represents a
PriorityQueue
of type A as aPriorityQueue
of type B.
Unlike other wrapped objects, this one should be declared as aQueue
. - WrappedSet<A,
B> - Class in com.saicone.types.util - WrappedSet(Set<A>, TypeWrapper<A, B>) - Constructor for class com.saicone.types.util.WrappedSet
-
Constructs a set of type A with its types represented as B.
- WrappedSet.Navigable<A,
B> - Class in com.saicone.types.util -
Represents a
NavigableSet
of type A as aNavigableSet
of type B. - WrappedSet.Sorted<A,
B> - Class in com.saicone.types.util - wrapTwo(Object) - Method in class com.saicone.types.util.WrappedObject2
-
Wrap the provided object as B2 type, mostly known as a conversion to represent A2 type as B2 type.
All Classes and Interfaces|All Packages