Class RouteHint


  • public class RouteHint
    extends Object
    A list of hops along a payment path terminating with a channel to the recipient.
    • Method Detail

      • clone

        public RouteHint clone()
        Creates a copy of the RouteHint
        Overrides:
        clone in class Object
      • hash

        public long hash()
        Generates a non-cryptographic 64-bit hash of the RouteHint.
      • hashCode

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

        public boolean eq​(RouteHint b)
        Checks if two RouteHints contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

        public byte[] write()
        Serialize the RouteHint object into a byte array which can be read by RouteHint_read