Class SimplifiedContractCounterOffer


  • public class SimplifiedContractCounterOffer
    extends java.lang.Object
    A contract counter-offer useful when important details about the negotiation in question can be inferred.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<se.arkalix.core.plugin.cp.TrustedContractDto> contracts()
      Offered contracts.
      java.time.Duration expiresIn()
      Duration until this counter-offer can no longer be accepted or rejected.
      static SimplifiedContractCounterOffer from​(java.util.List<se.arkalix.core.plugin.cp.TrustedContractDto> contracts)
      Creates new counter-offer from given contracts.
      static SimplifiedContractCounterOffer from​(se.arkalix.core.plugin.cp.TrustedContractDto... contracts)
      Creates new counter-offer from given contracts.
      java.time.Instant offeredAt()
      The time at which this counter-offer was created.
      java.time.Instant validAfter()
      Instant after which this counter-offer becomes acceptable.
      java.time.Instant validUntil()
      Instant until this counter-offer can be accepted or rejected.
      • Methods inherited from class java.lang.Object

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

      • from

        public static SimplifiedContractCounterOffer from​(se.arkalix.core.plugin.cp.TrustedContractDto... contracts)
        Creates new counter-offer from given contracts.
        Parameters:
        contracts - Offered contracts.
        Returns:
        New counter-offer.
      • from

        public static SimplifiedContractCounterOffer from​(java.util.List<se.arkalix.core.plugin.cp.TrustedContractDto> contracts)
        Creates new counter-offer from given contracts.
        Parameters:
        contracts - Offered contracts.
        Returns:
        New counter-offer.
      • validAfter

        public java.time.Instant validAfter()
        Instant after which this counter-offer becomes acceptable.
      • validUntil

        public java.time.Instant validUntil()
        Instant until this counter-offer can be accepted or rejected.
      • expiresIn

        public java.time.Duration expiresIn()
        Duration until this counter-offer can no longer be accepted or rejected.
      • contracts

        public java.util.List<se.arkalix.core.plugin.cp.TrustedContractDto> contracts()
        Offered contracts.
      • offeredAt

        public java.time.Instant offeredAt()
        The time at which this counter-offer was created.