Record Class Ek9Types

java.lang.Object
java.lang.Record
org.ek9lang.compiler.symbols.Ek9Types
All Implemented Interfaces:
Serializable

public record Ek9Types(ISymbol ek9Void, ISymbol ek9Boolean, ISymbol ek9Integer, ISymbol ek9Float, ISymbol ek9String, ISymbol ek9Character, ISymbol ek9Date, ISymbol ek9DateTime, ISymbol ek9Time, ISymbol ek9Duration, ISymbol ek9Json, ISymbol ek9Millisecond, ISymbol ek9Path, ISymbol ek9Version, ISymbol ek9HttpRequest, ISymbol ek9HttpResponse, ISymbol ek9Exception, ISymbol ek9List, ISymbol ek9Iterator, ISymbol ek9Optional, ISymbol ek9Dictionary, ISymbol ek9DictionaryEntry, ISymbol ek9Result, ISymbol ek9Supplier, ISymbol ek9Consumer, ISymbol ek9Function, ISymbol ek9UnaryOperator, ISymbol ek9Predicate, ISymbol ek9Comparator) extends Record implements Serializable
Used to cache built in types as they are so frequently used.
See Also:
  • Constructor Details

    • Ek9Types

      public Ek9Types(ISymbol ek9Void, ISymbol ek9Boolean, ISymbol ek9Integer, ISymbol ek9Float, ISymbol ek9String, ISymbol ek9Character, ISymbol ek9Date, ISymbol ek9DateTime, ISymbol ek9Time, ISymbol ek9Duration, ISymbol ek9Json, ISymbol ek9Millisecond, ISymbol ek9Path, ISymbol ek9Version, ISymbol ek9HttpRequest, ISymbol ek9HttpResponse, ISymbol ek9Exception, ISymbol ek9List, ISymbol ek9Iterator, ISymbol ek9Optional, ISymbol ek9Dictionary, ISymbol ek9DictionaryEntry, ISymbol ek9Result, ISymbol ek9Supplier, ISymbol ek9Consumer, ISymbol ek9Function, ISymbol ek9UnaryOperator, ISymbol ek9Predicate, ISymbol ek9Comparator)
      Creates an instance of a Ek9Types record class.
      Parameters:
      ek9Void - the value for the ek9Void record component
      ek9Boolean - the value for the ek9Boolean record component
      ek9Integer - the value for the ek9Integer record component
      ek9Float - the value for the ek9Float record component
      ek9String - the value for the ek9String record component
      ek9Character - the value for the ek9Character record component
      ek9Date - the value for the ek9Date record component
      ek9DateTime - the value for the ek9DateTime record component
      ek9Time - the value for the ek9Time record component
      ek9Duration - the value for the ek9Duration record component
      ek9Json - the value for the ek9Json record component
      ek9Millisecond - the value for the ek9Millisecond record component
      ek9Path - the value for the ek9Path record component
      ek9Version - the value for the ek9Version record component
      ek9HttpRequest - the value for the ek9HttpRequest record component
      ek9HttpResponse - the value for the ek9HttpResponse record component
      ek9Exception - the value for the ek9Exception record component
      ek9List - the value for the ek9List record component
      ek9Iterator - the value for the ek9Iterator record component
      ek9Optional - the value for the ek9Optional record component
      ek9Dictionary - the value for the ek9Dictionary record component
      ek9DictionaryEntry - the value for the ek9DictionaryEntry record component
      ek9Result - the value for the ek9Result record component
      ek9Supplier - the value for the ek9Supplier record component
      ek9Consumer - the value for the ek9Consumer record component
      ek9Function - the value for the ek9Function record component
      ek9UnaryOperator - the value for the ek9UnaryOperator record component
      ek9Predicate - the value for the ek9Predicate record component
      ek9Comparator - the value for the ek9Comparator record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ek9Void

      public ISymbol ek9Void()
      Returns the value of the ek9Void record component.
      Returns:
      the value of the ek9Void record component
    • ek9Boolean

      public ISymbol ek9Boolean()
      Returns the value of the ek9Boolean record component.
      Returns:
      the value of the ek9Boolean record component
    • ek9Integer

      public ISymbol ek9Integer()
      Returns the value of the ek9Integer record component.
      Returns:
      the value of the ek9Integer record component
    • ek9Float

      public ISymbol ek9Float()
      Returns the value of the ek9Float record component.
      Returns:
      the value of the ek9Float record component
    • ek9String

      public ISymbol ek9String()
      Returns the value of the ek9String record component.
      Returns:
      the value of the ek9String record component
    • ek9Character

      public ISymbol ek9Character()
      Returns the value of the ek9Character record component.
      Returns:
      the value of the ek9Character record component
    • ek9Date

      public ISymbol ek9Date()
      Returns the value of the ek9Date record component.
      Returns:
      the value of the ek9Date record component
    • ek9DateTime

      public ISymbol ek9DateTime()
      Returns the value of the ek9DateTime record component.
      Returns:
      the value of the ek9DateTime record component
    • ek9Time

      public ISymbol ek9Time()
      Returns the value of the ek9Time record component.
      Returns:
      the value of the ek9Time record component
    • ek9Duration

      public ISymbol ek9Duration()
      Returns the value of the ek9Duration record component.
      Returns:
      the value of the ek9Duration record component
    • ek9Json

      public ISymbol ek9Json()
      Returns the value of the ek9Json record component.
      Returns:
      the value of the ek9Json record component
    • ek9Millisecond

      public ISymbol ek9Millisecond()
      Returns the value of the ek9Millisecond record component.
      Returns:
      the value of the ek9Millisecond record component
    • ek9Path

      public ISymbol ek9Path()
      Returns the value of the ek9Path record component.
      Returns:
      the value of the ek9Path record component
    • ek9Version

      public ISymbol ek9Version()
      Returns the value of the ek9Version record component.
      Returns:
      the value of the ek9Version record component
    • ek9HttpRequest

      public ISymbol ek9HttpRequest()
      Returns the value of the ek9HttpRequest record component.
      Returns:
      the value of the ek9HttpRequest record component
    • ek9HttpResponse

      public ISymbol ek9HttpResponse()
      Returns the value of the ek9HttpResponse record component.
      Returns:
      the value of the ek9HttpResponse record component
    • ek9Exception

      public ISymbol ek9Exception()
      Returns the value of the ek9Exception record component.
      Returns:
      the value of the ek9Exception record component
    • ek9List

      public ISymbol ek9List()
      Returns the value of the ek9List record component.
      Returns:
      the value of the ek9List record component
    • ek9Iterator

      public ISymbol ek9Iterator()
      Returns the value of the ek9Iterator record component.
      Returns:
      the value of the ek9Iterator record component
    • ek9Optional

      public ISymbol ek9Optional()
      Returns the value of the ek9Optional record component.
      Returns:
      the value of the ek9Optional record component
    • ek9Dictionary

      public ISymbol ek9Dictionary()
      Returns the value of the ek9Dictionary record component.
      Returns:
      the value of the ek9Dictionary record component
    • ek9DictionaryEntry

      public ISymbol ek9DictionaryEntry()
      Returns the value of the ek9DictionaryEntry record component.
      Returns:
      the value of the ek9DictionaryEntry record component
    • ek9Result

      public ISymbol ek9Result()
      Returns the value of the ek9Result record component.
      Returns:
      the value of the ek9Result record component
    • ek9Supplier

      public ISymbol ek9Supplier()
      Returns the value of the ek9Supplier record component.
      Returns:
      the value of the ek9Supplier record component
    • ek9Consumer

      public ISymbol ek9Consumer()
      Returns the value of the ek9Consumer record component.
      Returns:
      the value of the ek9Consumer record component
    • ek9Function

      public ISymbol ek9Function()
      Returns the value of the ek9Function record component.
      Returns:
      the value of the ek9Function record component
    • ek9UnaryOperator

      public ISymbol ek9UnaryOperator()
      Returns the value of the ek9UnaryOperator record component.
      Returns:
      the value of the ek9UnaryOperator record component
    • ek9Predicate

      public ISymbol ek9Predicate()
      Returns the value of the ek9Predicate record component.
      Returns:
      the value of the ek9Predicate record component
    • ek9Comparator

      public ISymbol ek9Comparator()
      Returns the value of the ek9Comparator record component.
      Returns:
      the value of the ek9Comparator record component