public class StructuresKt
Modifier and Type | Method and Description |
---|---|
static void |
extractFile(java.util.jar.JarInputStream $receiver,
java.lang.String path,
java.io.OutputStream outputTo) |
static SecureHash |
hash(ContractState $receiver)
Returns the SHA-256 hash of the serialised contents of this state (not cached!)
|
static <T extends ContractState> |
with notary(T $receiver,
Party newNotary)
Wraps the
interface ContractState in a class TransactionState object |
static <T extends ContractState> |
withNotary(T $receiver,
Party newNotary) |
static <T> Amount<T> |
withoutIssuer(Amount<net.corda.core.contracts.Issued> $receiver)
Strips the issuer and returns an
class Amount of the raw token directly. This is useful when you are mixing code that
cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some
other mechanism and the additional type safety is not wanted. |
public static <T extends ContractState> TransactionState<T> with notary(T $receiver, Party newNotary)
Wraps the interface ContractState
in a class TransactionState
object
interface ContractState
,
class TransactionState
public static <T extends ContractState> TransactionState<T> withNotary(T $receiver, Party newNotary)
public static <T> Amount<T> withoutIssuer(Amount<net.corda.core.contracts.Issued> $receiver)
Strips the issuer and returns an class Amount
of the raw token directly. This is useful when you are mixing code that
cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some
other mechanism and the additional type safety is not wanted.
class Amount
public static SecureHash hash(ContractState $receiver)
Returns the SHA-256 hash of the serialised contents of this state (not cached!)
public static void extractFile(java.util.jar.JarInputStream $receiver, java.lang.String path, java.io.OutputStream outputTo)