Class RecordType

  • All Implemented Interfaces:
    Type

    public class RecordType
    extends BaseType
    The type of a record value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.SortedMap<java.lang.String,​Type> argNameTypes  
      static com.google.common.collect.Ordering<java.lang.String> ORDERING
      Ordering that compares integer values numerically, string values lexicographically, and integer values before string values.
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordType​(java.lang.String description, com.google.common.collect.ImmutableSortedMap<java.lang.String,​Type> argNameTypes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R> R accept​(TypeVisitor<R> typeVisitor)  
      Type copy​(TypeSystem typeSystem, java.util.function.Function<Type,​Type> transform)
      Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.
      private static java.lang.Integer parseInt​(java.lang.String s)
      Parses a string that contains an integer value, or returns null if the string does not contain an integer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • argNameTypes

        public final java.util.SortedMap<java.lang.String,​Type> argNameTypes
      • ORDERING

        public static final com.google.common.collect.Ordering<java.lang.String> ORDERING
        Ordering that compares integer values numerically, string values lexicographically, and integer values before string values.

        Thus: 2, 22, 202, a, a2, a202, a22.

    • Constructor Detail

      • RecordType

        RecordType​(java.lang.String description,
                   com.google.common.collect.ImmutableSortedMap<java.lang.String,​Type> argNameTypes)
    • Method Detail

      • accept

        public <R> R accept​(TypeVisitor<R> typeVisitor)
      • copy

        public Type copy​(TypeSystem typeSystem,
                         java.util.function.Function<Type,​Type> transform)
        Description copied from interface: Type
        Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.
      • parseInt

        private static java.lang.Integer parseInt​(java.lang.String s)
        Parses a string that contains an integer value, or returns null if the string does not contain an integer.