Class CRelease

    • Method Detail

      • changes

        public io.vavr.collection.List<CChange> changes()
        Specified by:
        changes in interface CReleaseType
        Returns:
        The list of release changes
      • withDate

        public final CRelease withDate​(ZonedDateTime value)
        Copy the current immutable object by setting a value for the date attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for date
        Returns:
        A modified copy of the this object
      • withChanges

        public CRelease withChanges​(io.vavr.collection.List<CChange> value)
      • withTicketSystemID

        public final CRelease withTicketSystemID​(String value)
        Copy the current immutable object by setting a value for the ticketSystemID attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ticketSystemID
        Returns:
        A modified copy of the this object
      • withVersion

        public final CRelease withVersion​(CVersionType value)
        Copy the current immutable object by setting a value for the version attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for version
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of CRelease that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: date, changes, ticketSystemID, version.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value CRelease with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static CRelease of​(ZonedDateTime date,
                                  io.vavr.collection.List<CChange> changes,
                                  String ticketSystemID,
                                  CVersionType version)
        Construct a new immutable CRelease instance.
        Parameters:
        date - The value for the date attribute
        changes - The value for the changes attribute
        ticketSystemID - The value for the ticketSystemID attribute
        version - The value for the version attribute
        Returns:
        An immutable CRelease instance
      • copyOf

        public static CRelease copyOf​(CReleaseType instance)
        Creates an immutable copy of a CReleaseType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable CRelease instance