Package org.ldk.structs
Class Description
- java.lang.Object
-
- org.ldk.structs.Description
-
public class Description extends Object
Description string # Invariants The description can be at most 639 __bytes__ long
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Description
clone()
Creates a copy of the Descriptionboolean
eq(Description b)
Checks if two Descriptions contain equal inner contents.protected void
finalize()
String
into_inner()
Returns the underlying description `String`static Result_DescriptionCreationErrorZ
of(String description)
Creates a new `Description` if `description` is at most 1023 __bytes__ long, returns `CreationError::DescriptionTooLong` otherwise Please note that single characters may use more than one byte due to UTF8 encoding.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(Description b)
Checks if two Descriptions 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 Description clone()
Creates a copy of the Description
-
of
public static Result_DescriptionCreationErrorZ of(String description)
Creates a new `Description` if `description` is at most 1023 __bytes__ long, returns `CreationError::DescriptionTooLong` otherwise Please note that single characters may use more than one byte due to UTF8 encoding.
-
into_inner
public String into_inner()
Returns the underlying description `String`
-
-