Module org.refcodes.struct
Package org.refcodes.struct
package org.refcodes.struct
This artifact contains base definitions regarding collections being used
throughout the `REFCODES.ORG` artifacts; to unify management of various kinds
of collections.
Please note the PathMap
, which's extension, the
HttpBodyMap
(found in the refcodes-web
artifact) is
used to represent dynamic data types produced e.g. by JavaScript
clients.
-
ClassDescriptionThrown in case this instance does not contain the requested element (no such key found in the collection).Interface describing a bean's attribute with a key represented by a
String
and the value being of any type.Adds builder functionality to anAttribute
.Class describing a beans's attribute.Implementation of theProperty.PropertyBuilder
interface.Provides an accessor for a boolean array property.Provides a builder method for a boolean array property returning the builder for applying multiple build operations.Provides a mutator for a boolean array property.Provides a boolean array property.TheBoundedIterator
decorates anIterator
to limit its element to a maximum number.Provides an accessor for a byte array property.Provides a builder method for a byte array property returning the builder for applying multiple build operations.Provides a mutator for a byte array property.Provides a byte array property.TheCanonicalMap
is an "intermediate" type adding type and Data-Structure related functionality to any implementing class.The Interface CanonicalMapBuilder.The Interface MutableCanonicalMap.The Class CanonicalMapBuilderImpl.The Class CanonicalMapImpl.TheClassStructMap
disects aClass
into its simple types (consideringString
andEnum
types as well as primitive types).The Interface ClassStructMapBuilder.The Interface MutableClassStructMap.The Class ClassStructBuilderImpl.The Class ClassStructMapImpl.AContainable
is the base functionality provided container (collection).Container<E>Basic functionality being provided by anyContainer
(collection) style class.Extends theContainer
with mutable (writable) functionality, ehttps://www.metacodes.proly by enabling theIterator.remove()
method in theIterator
provided viaElements.iterator()
.Provides an accessor for a double array property.Provides a builder method for a double array property returning the builder for applying multiple build operations.Provides a mutator for a double array property.Provides a double array property.Elements<E>Basic functionality being provided by anyElements
(collection) style class.Extends theElements
with mutable (writable) functionality, ehttps://www.metacodes.proly by enabling theIterator.remove()
method in theIterator
provided viaElements.MutableElements.iterator()
and by providing theElements.MutableElements.add(Object)
and theElements.MutableElements.remove(Object)
methods.Provides an accessor for a float array property.Provides a builder method for a float array property returning the builder for applying multiple build operations.Provides a mutator for a float array property.Provides a float array property.TheInterOperableMap
provides convenience accessor default methods for supporting primitive data types.TheInterOperableMap.InterOperableMapBuilder
provides convenience accessor default methods for supporting primitive data types.TheInterOperableMap.InterOperableMapBuilder
provides convenience accessor default methods for supporting primitive data types.Thrown in case this instance does not contain the requested element (no such key found in the collection).Thrown in case this instance does not contain the requested element (no such key found in the collection).Keys<K,V> This interface provides functionality for working with keys.Keys.MutableKeys<K,V> Adds mutable functionality to theKeys
interface.Keys.MutableValues<K,V> Mixin for mutable functionality accompanying theKeys
interface.Comparator for path elements, it takes care to sort index values correctly, e.g. "1000" must come after "9": The paths "/foo/bar/1000/wow" and "/foo/bar/9/wow" should be sorted as follows:"/foo/bar/9/wow" "/foo/bar/1000/wow"
PathMap<T>ThePathMap.MutablePathMap
adds mutable functionality to thePathMap
.ThePathMap.PathMapBuilder
adds builder functionality to thePathMap.MutablePathMap
.ThePathMapBuilderImpl
class implements thePathMap.PathMapBuilder
interface and provides a hookPathMapBuilderImpl.createBackingMap()
method which may be overridden for providing anotherMap
type as backing map than the default one.PathMapImpl<T>ThePathMapImpl
class implements thePathMap
interface and provides a hookPathMapImpl.createBackingMap()
method which may be overridden for providing anotherMap
type as backing map than the default one.ThePathSortStrategy
defines strategies to use when sorting e.g. when using aPathComparator
or the methodPathMap.sortedKeys(PathSortStrategy)
ThePrimitiveArrayType
enumeration contains theClass
representation of the primitive array types.Adds builder functionality to aProperty
.Implementation of theProperty
interface.Implementation of theProperty.PropertyBuilder
interface.Interface describing a range with a minimum value and a maximum value.Adds builder functionality to aRange
.Implementation of theRange
interface.Implementation of theRange.RangeBuilder
interface.Referencee<T>AReferencee
encapsulates a reference to an instance which might be null at the time of the referencee's creation.Relation<K,V> Provides an accessor for a key-to-value property useful in some occasions.Adds builder functionality to aRelation
.RelationImpl<K,V> Implementation of theRelation
interface.Implementation of theRelation.RelationBuilder
interface.Provides an accessor for a short array property.Provides a builder method for a short array property returning the builder for applying multiple build operations.Provides a mutator for a short array property.Provides a short array property.TheSimpleTypeMap.MutableSimpleTypeMap
adds functionality for manipulating the internal state to theSimpleTypeMap
.ASimpleTypeMap.SimpleTypeMapBuilder
sets builder functionality (as of the builder pattern) on top of theSimpleTypeMap.MutableSimpleTypeMap
.An implementation of theSimpleTypeMap.SimpleTypeMapBuilder
.An implementation of theSimpleTypeMap
.Provides an accessor for a String array property.Provides a builder method for a String array property returning the builder for applying multiple build operations.Provides a mutator for a String array property.Provides a String array property.TheStructureException
is the base checked exception for this package.TheStructureRuntimeException
is the base runtime exception for this package.Utility class to avoid redundant code regarding variousPathMap
implementations.Table<K,V> Basic functionality being provided by anyTable
(map) style class.Extends theTable
with mutable (writable) functionality, ehttps://www.metacodes.proly by providingKeys.MutableValues.put(Object, Object)
andKeys.MutableKeys.delete(String)
methods.Table.TableDictionary.TableBuilder<K,V, B extends Table.TableDictionary.TableBuilder<K, V, B>> Provides a builder method for aRelation
property returning the builder for applying multiple build operations.Provides an accessor for a type mode property.Provides a builder method for a type mode property returning the builder for applying multiple build operations.Provides a mutator for a type mode property.Provides a type mode property.TheTypeUtility
uses reflection to fiddle around with primitives, types, classes, instances and the like.Extension of theNoSuchMethodException
with an additional aCausegetCause()