Record Class Aantal

java.lang.Object
java.lang.Record
nl.b3p.planmonitorwonen.api.model.Aantal
Record Components:
gepland - total number of planned dwellings, null is the same as 0
gerealiseerd - number of dwellings already realised, null is the same as 0
perJaar - planned number of dwellings per year of delivery (fasering), years with a null value are left out

public record Aantal(Integer gepland, Integer gerealiseerd, SortedMap<Integer,Integer> perJaar) extends Record
Number of dwellings for a plancategorie. A year left out of perJaar is not filled in, a year with 0 is filled in as zero. For the totals both count as zero.
  • Constructor Details

    • Aantal

      public Aantal(Integer gepland, Integer gerealiseerd, SortedMap<Integer,Integer> perJaar)
      Creates an instance of a Aantal record class.
      Parameters:
      gepland - the value for the gepland record component
      gerealiseerd - the value for the gerealiseerd record component
      perJaar - the value for the perJaar record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • gepland

      public Integer gepland()
      Returns the value of the gepland record component.
      Returns:
      the value of the gepland record component
    • gerealiseerd

      public Integer gerealiseerd()
      Returns the value of the gerealiseerd record component.
      Returns:
      the value of the gerealiseerd record component
    • perJaar

      public SortedMap<Integer,Integer> perJaar()
      Returns the value of the perJaar record component.
      Returns:
      the value of the perJaar record component