All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.corda.contracts.ICommercialPaperState Maven / Gradle / Ivy

package net.corda.contracts;

import net.corda.core.contracts.*;

import java.security.PublicKey;
import java.time.*;
import java.util.*;

/* This is an interface solely created to demonstrate that the same kotlin tests can be run against
 * either a Java implementation of the CommercialPaper or a kotlin implementation.
 * Normally one would not duplicate an implementation in different languages for obvious reasons, but it demonstrates that
 * ultimately either language can be used against a common test framework (and therefore can be used for real).
 */
public interface ICommercialPaperState extends ContractState {
    ICommercialPaperState withOwner(PublicKey newOwner);

    ICommercialPaperState withFaceValue(Amount> newFaceValue);

    ICommercialPaperState withMaturityDate(Instant newMaturityDate);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy