java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.type.RecordType
All Implemented Interfaces:
Type

public final class RecordType extends Object
The "record" type, a map of identifiers to other types.
  • Method Details

    • get

      public Optional<Type> get(Identifier name)
      Gets the type for the specified identifier.
      Parameters:
      name - the identifier to get the type of.
      Returns:
      the type of the specified identifier.
    • getShape

      public Map<Identifier,Type> getShape()
      Gets the map of identifiers to their types.
      Returns:
      the map of identifiers to their types.
    • expectRecordType

      public RecordType expectRecordType(String message)
    • equals

      public boolean equals(Object obj)
    • hashCode

      public int hashCode()
    • toString

      public String toString()