Package org.rumbledb.types
Class AbstractItemType
java.lang.Object
org.rumbledb.types.AbstractItemType
- All Implemented Interfaces:
Serializable,ItemType
- Direct Known Subclasses:
ArrayItemType,AtomicItemType,AttributeNodeItemType,DerivedAtomicItemType,DocumentNodeItemType,ElementNodeItemType,ErrorItemType,FunctionItemType,ItemItemType,ItemTypeReference,JsonItemType,MapItemType,NodeItemType,ObjectItemType,PINodeItemType,UnionItemType,XmlNodeItemType,XQueryArrayItemType
Centralizes Java equality for item types.
Named types compare by expanded name, anonymous nominal types compare by identity, and structural
types override
equalityKey() with a canonical structural key.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectprotected static ObjectequalityKeyOf(ItemType itemType) final booleanTests for itemType equality.final inthashCode()protected static ObjectnamedTypeKey(Name name) protected static ObjectstructuralTypeKey(Class<? extends ItemType> typeClass, Object... components) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rumbledb.types.ItemType
canBeNull, canBePromotedTo, findLeastCommonSuperTypeLax, findLeastCommonSuperTypeWith, getAllowedFacets, getArrayContentFacet, getBaseType, getBoundedFacet, getCardinalityFacet, getCastingPrimitiveType, getClosedFacet, getConstraintsFacet, getEnumerationFacet, getExplicitTimezoneFacet, getFractionDigitsFacet, getIdentifierString, getLengthFacet, getLexicalSpacePatterns, getMapKeyItemType, getMapValueSequenceType, getMaxExclusiveFacet, getMaxInclusiveFacet, getMaxLengthFacet, getMemberSequenceType, getMinExclusiveFacet, getMinInclusiveFacet, getMinLengthFacet, getName, getNumericFacet, getObjectContentFacet, getObjectContentFacet, getObjectContentFacetAsUnorderedMap, getObjectKeysFacet, getOrderedFacet, getPatternFacet, getPrimitiveType, getSignature, getSingleNullableType, getSparkSQLType, getTotalDigitsFacet, getTypes, getTypeTreeDepth, getWhitespaceFacet, hasName, isArrayItemType, isAtomicItemType, isCastingPrimitive, isCompatibleWithDataFrames, isEqualTo, isFunctionItemType, isJsonItemType, isMapItemType, isNodeItemType, isNumeric, isObjectItemType, isPrimitive, isResolved, isStaticallyCastableAs, isSubtypeOf, isTopmostItemType, isUnionType, isUserDefined, isXQueryArrayItemType, resolve, resolve, toString
-
Constructor Details
-
AbstractItemType
public AbstractItemType()
-
-
Method Details
-
equals
Description copied from interface:ItemTypeTests for itemType equality. -
hashCode
public final int hashCode() -
equalityKey
-
equalityKeyOf
-
namedTypeKey
-
structuralTypeKey
-