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 PrivateRouteclone()Creates a copy of the PrivateRoutebooleaneq(PrivateRoute b)Checks if two PrivateRoutes contain equal inner contents.protected voidfinalize()RouteHintinto_inner()Returns the underlying list of hopsstatic Result_PrivateRouteCreationErrorZof(RouteHint hops)Creates a new (partial) route from a list of hops
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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.
-
clone
public PrivateRoute clone()
Creates a copy of the PrivateRoute
-
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
-
-