Class HList.HCons<Head,​Tail extends HList>

    • Field Detail

      • head

        private final Head head
      • tail

        private final Tail extends HList tail
    • Constructor Detail

      • HCons

        HCons​(Head head,
              Tail tail)
    • Method Detail

      • head

        public Head head()
        The head element of the HList.
        Returns:
        the head element
      • tail

        public Tail tail()
        The remaining tail of the HList; returns an HNil if this is the last element.
        Returns:
        the tail
      • cons

        public <NewHead> HList.HCons<NewHead,​? extends HList.HCons<Head,​Tail>> cons​(NewHead newHead)
        Description copied from class: HList
        Cons an element onto the front of this HList.
        Specified by:
        cons in class HList
        Type Parameters:
        NewHead - the new head type
        Parameters:
        newHead - the new head element
        Returns:
        the updated HList
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object