Class Keys.ForallKey

java.lang.Object
net.hydromatic.morel.type.Type.Key
net.hydromatic.morel.type.Keys.ForallKey
Enclosing class:
Keys

private static class Keys.ForallKey extends Type.Key
Key of a forall type.
  • Field Details

    • type

      final Type type
    • parameterCount

      final int parameterCount
  • Constructor Details

    • ForallKey

      ForallKey(Type type, int parameterCount)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • describe

      public StringBuilder describe(StringBuilder buf, int left, int right)
      Description copied from class: Type.Key
      Writes a description of this key to a string builder.
      Specified by:
      describe in class Type.Key
    • toType

      public Type toType(TypeSystem typeSystem)
      Description copied from class: Type.Key
      Converts this key to a type, and ensures that it is registered in the type system.
      Specified by:
      toType in class Type.Key