Package org.ldk.structs
Class PrivateRoute
- java.lang.Object
-
- org.ldk.structs.PrivateRoute
-
public class PrivateRoute extends Object
Private routing information # Invariants The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateRoute
clone()
Creates a copy of the PrivateRouteboolean
eq(PrivateRoute b)
Checks if two PrivateRoutes contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
long
hash()
Generates a non-cryptographic 64-bit hash of the PrivateRoute.int
hashCode()
RouteHint
into_inner()
Returns the underlying list of hopsstatic Result_PrivateRouteCreationErrorZ
of(RouteHint hops)
Creates a new (partial) route from a list of hops
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public PrivateRoute clone()
Creates a copy of the PrivateRoute
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the PrivateRoute.
-
eq
public boolean eq(PrivateRoute b)
Checks if two PrivateRoutes 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.
-
of
public static Result_PrivateRouteCreationErrorZ of(RouteHint hops)
Creates a new (partial) route from a list of hops
-
into_inner
public RouteHint into_inner()
Returns the underlying list of hops
-
-