Class TokenBalance

    • Method Detail

      • ownerIdentifier

        public final OwnerIdentifier ownerIdentifier()

        The container for the identifier of the owner.

        Returns:
        The container for the identifier of the owner.
      • tokenIdentifier

        public final TokenIdentifier tokenIdentifier()

        The identifier for the token, including the unique token ID and its blockchain network.

        Returns:
        The identifier for the token, including the unique token ID and its blockchain network.
      • balance

        public final String balance()

        The container of the token balance.

        Returns:
        The container of the token balance.
      • atBlockchainInstant

        public final BlockchainInstant atBlockchainInstant()

        The time for when the TokenBalance is requested or the current time if a time is not provided in the request.

        This time will only be recorded up to the second.

        Returns:
        The time for when the TokenBalance is requested or the current time if a time is not provided in the request.

        This time will only be recorded up to the second.

      • lastUpdatedTime

        public final BlockchainInstant lastUpdatedTime()

        The Timestamp of the last transaction at which the balance for the token in the wallet was updated.

        Returns:
        The Timestamp of the last transaction at which the balance for the token in the wallet was updated.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)