- AbstractDynamic<T> - Class in alexh.weak
-
- AbstractDynamic(T) - Constructor for class alexh.weak.AbstractDynamic
-
- alexh - package alexh
-
- alexh.weak - package alexh.weak
-
- ALL_PARSER - Static variable in class alexh.weak.ConverterTimeFormats
-
Tries all permissive parsers, taking the first success or throwing the first exception if all fail
ISO_PERMISSIVE -> DAY_MONTH_YEAR_PERMISSIVE_DASH -> UTIL_DATE_TO_STRING -> EPOCH_MILLIS_PARSER
- ALL_PARSER_WITH_DEFAULTS - Static variable in class alexh.weak.ConverterTimeFormats
-
Tries all permissive parsers (with defaults where applicable), taking the first success or throwing the first
exception if all fail
ISO_PERMISSIVE -> DAY_MONTH_YEAR_PERMISSIVE_DASH -> UTIL_DATE_TO_STRING -> EPOCH_MILLIS_PARSER
- allChildren() - Method in interface alexh.weak.Dynamic
-
- allChildrenBreadthFirst() - Method in interface alexh.weak.Dynamic
-
Returns a stream of all children in a breadth first order, for example a structure
- allChildrenDepthFirst() - Method in interface alexh.weak.Dynamic
-
Returns a stream of all children in a depth first order, for example a structure
- as(Class<T>) - Method in interface alexh.weak.Dynamic
-
As
Weak.asObject() casting to input type, and providing a better message in the exceptional case
- as(Class<T>) - Method in class alexh.weak.OptionalWeak
-
Returns inner value as optional of input type, if the inner value is absent or not an instance of the input
type an empty optional is returned
- as(Class<T>) - Method in interface alexh.weak.Weak
-
- asList() - Method in class alexh.weak.OptionalWeak
-
Shortcut for as(List.class), with malleable generic type
- asList() - Method in interface alexh.weak.Weak
-
Shortcut for as(List.class), with malleable generic type
- asMap() - Method in class alexh.weak.OptionalWeak
-
Shortcut for as(Map.class), with malleable generic type
- asMap() - Method in interface alexh.weak.Weak
-
Shortcut for as(Map.class), with malleable generic type
- asObject() - Method in class alexh.weak.AbstractDynamic
-
- asObject() - Method in class alexh.weak.ChildAbsence
-
- asObject() - Method in class alexh.weak.OptionalWeak
-
- asObject() - Method in class alexh.weak.ParentAbsence
-
- asObject() - Method in interface alexh.weak.Weak
-
Returns inner value implicitly asserting that the value is not absent, ie
Weak.isPresent() is true
- asObject() - Method in class alexh.weak.XmlDynamic
-
- asOptional() - Method in interface alexh.weak.Weak
-
Converts this value/absence wrapper into a standard optional
- asString() - Method in class alexh.weak.OptionalWeak
-
Shortcut for as(String.class)
- asString() - Method in interface alexh.weak.Weak
-
Shortcut for as(String.class)
- attributes() - Method in class alexh.weak.XmlDynamic
-
- attributesWith(Predicate<Node>) - Method in class alexh.weak.XmlDynamic
-
- ifPresent(Consumer<? super W>) - Method in class alexh.weak.OptionalWeak
-
- inner - Variable in class alexh.weak.AbstractDynamic
-
- intoDecimal() - Method in class alexh.weak.Converter
-
- intoDecimal() - Method in class alexh.weak.ConverterMaybe
-
- intoDecimalWorks() - Method in class alexh.weak.Converter
-
- intoDouble() - Method in class alexh.weak.Converter
-
- intoDouble() - Method in class alexh.weak.ConverterMaybe
-
- intoDoubleWorks() - Method in class alexh.weak.Converter
-
- intoInteger() - Method in class alexh.weak.Converter
-
- intoInteger() - Method in class alexh.weak.ConverterMaybe
-
- intoIntegerWorks() - Method in class alexh.weak.Converter
-
- intoList() - Method in class alexh.weak.Converter
-
Converts the inner value into a List
will convert a Map into a value list
will convert simple types into a size 1 list [?]
as such this should always work
- intoList() - Method in class alexh.weak.ConverterMaybe
-
- intoListWorks() - Method in class alexh.weak.Converter
-
- intoLocalDateTime() - Method in class alexh.weak.Converter
-
Converts to string & permissively parses as a date, ignoring time zone
defaults day->1, month->1, hour->0, minute->0, second->0, nanoseconds->0
- intoLocalDateTime() - Method in class alexh.weak.ConverterMaybe
-
- intoLocalDateTimeWorks() - Method in class alexh.weak.Converter
-
- intoLong() - Method in class alexh.weak.Converter
-
- intoLong() - Method in class alexh.weak.ConverterMaybe
-
- intoLongWorks() - Method in class alexh.weak.Converter
-
- intoMap() - Method in class alexh.weak.Converter
-
Converts the inner value into a Map
will convert an Iterable into an index -> value map
will convert simple types into a size 1 map of {"value": ?}
as such this should always work
- intoMap() - Method in class alexh.weak.ConverterMaybe
-
- intoMapWorks() - Method in class alexh.weak.Converter
-
- intoString() - Method in class alexh.weak.Converter
-
Converts the inner value into a String, should always work
- intoString() - Method in class alexh.weak.ConverterMaybe
-
- intoStringWorks() - Method in class alexh.weak.Converter
-
- intoZonedDateTime() - Method in class alexh.weak.Converter
-
Converts to string & permissively parses as a date, requiring a time zone to be parsed
defaults day->1, month->1, hour->0, minute->0, second->0, nanoseconds->0
- intoZonedDateTime() - Method in class alexh.weak.ConverterMaybe
-
- intoZonedDateTimeOrUse(ZoneId) - Method in class alexh.weak.Converter
-
Converts to string & permissively parses as a date, uses parsed time zone or falls back on input
defaults day->1, month->1, hour->0, minute->0, second->0, nanoseconds->0, time-zone->input
- intoZonedDateTimeOrUse(ZoneId) - Method in class alexh.weak.ConverterMaybe
-
- intoZonedDateTimeWorks() - Method in class alexh.weak.Converter
-
- is(Class<?>) - Method in interface alexh.weak.Weak
-
- is(Class<?>) - Method in class alexh.weak.XmlDynamic
-
Dynamic Xml values are always
Strings
- isList() - Method in interface alexh.weak.Weak
-
Shortcut for is(List.class)
- isMap() - Method in interface alexh.weak.Weak
-
Shortcut for is(Map.class)
- ISO_LONESOME_YEAR - Static variable in class alexh.weak.ConverterTimeFormats
-
Parses up to 4 digit years declared on their own
- ISO_LONESOME_YEAR_WITH_DEFAULTS - Static variable in class alexh.weak.ConverterTimeFormats
-
Parses up to 4 digit years declared on their own
defaults day->1, month->1, hour->0, minute->0, second->0, nanoseconds->0
- ISO_PERMISSIVE - Static variable in class alexh.weak.ConverterTimeFormats
-
Parses ISO date-strings as permissively as possible
- ISO_PERMISSIVE_WITH_DEFAULTS - Static variable in class alexh.weak.ConverterTimeFormats
-
Parses ISO date-strings as permissively as possible,
defaults day->1, hour->0, minute->0, second->0, nanoseconds->0
- isPresent() - Method in class alexh.weak.AbstractDynamic
-
- isPresent() - Method in class alexh.weak.OptionalWeak
-
- isPresent() - Method in interface alexh.weak.Weak
-
Returns if this instance wraps a non-null value.
- isString() - Method in interface alexh.weak.Weak
-
Shortcut for is(String.class)