Class Sample


  • public abstract class Sample
    extends java.lang.Object
    Testing samples.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sample()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.token.proto.common.alias.AliasProtos.Alias alias()
      Alias in the form of an email address.
      static io.token.proto.common.alias.AliasProtos.Alias alias​(boolean noVerify)
      Alias in the form of an email address.
      static io.token.proto.common.account.AccountProtos.BankAccount bankAccount()
      Token bank account.
      static io.token.proto.common.token.TokenProtos.TokenPayload bankTransfer()
      Transfer token payload.
      static io.token.proto.common.alias.AliasProtos.Alias domainAlias()
      Alias in the form of a URL.
      static io.token.proto.common.security.SecurityProtos.Signature signature()
      Signature.
      static long timeAfter​(long timestamp, long duration, java.util.concurrent.TimeUnit timeUnit)
      Adds a specified duration and returns the timestamp.
      static long timeBefore​(long timestamp, long duration, java.util.concurrent.TimeUnit timeUnit)
      Subtracts a specified duration and returns the timestamp.
      static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination tokenDestination()
      Token transfer destination.
      static io.token.proto.common.token.TokenProtos.TokenMember tokenMember()
      Token member.
      static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint transferEndpoint()
      Transfer source or destination.
      static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferInstructions transferInstructions()
      Transfer instructions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sample

        public Sample()
    • Method Detail

      • timeAfter

        public static long timeAfter​(long timestamp,
                                     long duration,
                                     java.util.concurrent.TimeUnit timeUnit)
        Adds a specified duration and returns the timestamp.
        Parameters:
        timestamp - timestamp to add to
        duration - duration to add
        timeUnit - the time unit
        Returns:
        result timestamp
      • timeBefore

        public static long timeBefore​(long timestamp,
                                      long duration,
                                      java.util.concurrent.TimeUnit timeUnit)
        Subtracts a specified duration and returns the timestamp.
        Parameters:
        timestamp - timestamp to subtract from
        duration - duration to subtract
        timeUnit - the time unit
        Returns:
        result timestamp
      • transferEndpoint

        public static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint transferEndpoint()
        Transfer source or destination.
        Returns:
        transfer endpoint
      • alias

        public static io.token.proto.common.alias.AliasProtos.Alias alias()
        Alias in the form of an email address.
        Returns:
        alias
      • alias

        public static io.token.proto.common.alias.AliasProtos.Alias alias​(boolean noVerify)
        Alias in the form of an email address.
        Parameters:
        noVerify - true if noverify should be appended
        Returns:
        alias
      • domainAlias

        public static io.token.proto.common.alias.AliasProtos.Alias domainAlias()
        Alias in the form of a URL.
        Returns:
        alias
      • bankAccount

        public static io.token.proto.common.account.AccountProtos.BankAccount bankAccount()
        Token bank account.
        Returns:
        Token bank account
      • tokenDestination

        public static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination tokenDestination()
        Token transfer destination.
        Returns:
        Token transfer destination
      • tokenMember

        public static io.token.proto.common.token.TokenProtos.TokenMember tokenMember()
        Token member.
        Returns:
        token member
      • transferInstructions

        public static io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferInstructions transferInstructions()
        Transfer instructions.
        Returns:
        transfer instructions
      • signature

        public static io.token.proto.common.security.SecurityProtos.Signature signature()
        Signature.
        Returns:
        signature
      • bankTransfer

        public static io.token.proto.common.token.TokenProtos.TokenPayload bankTransfer()
        Transfer token payload.
        Returns:
        token payload