Package org.ldk.structs
Class Score
- java.lang.Object
-
- org.ldk.structs.Score
-
public class Score extends Object
A trait which can both lookup and update routing channel penalty scores. This is used in places where both bounds are required and implemented for all types which implement [`ScoreLookUp`] and [`ScoreUpdate`]. Bindings users may need to manually implement this for their custom scoring implementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScore.ScoreInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroys the object, freeing associated resources.protected voidfinalize()ScoreLookUpget_score_look_up()Gets the underlying ScoreLookUp.ScoreUpdateget_score_update()Gets the underlying ScoreUpdate.static Scorenew_impl(Score.ScoreInterface arg, ScoreLookUp.ScoreLookUpInterface ScoreLookUp_impl, ScoreUpdate.ScoreUpdateInterface ScoreUpdate_impl)byte[]write()Serialize the object into a byte array
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
destroy
public void destroy()
Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
-
new_impl
public static Score new_impl(Score.ScoreInterface arg, ScoreLookUp.ScoreLookUpInterface ScoreLookUp_impl, ScoreUpdate.ScoreUpdateInterface ScoreUpdate_impl)
-
get_score_look_up
public ScoreLookUp get_score_look_up()
Gets the underlying ScoreLookUp.
-
get_score_update
public ScoreUpdate get_score_update()
Gets the underlying ScoreUpdate.
-
write
public byte[] write()
Serialize the object into a byte array
-
-