Record Class RoomSummaryDTO
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.RoomSummaryDTO
- Record Components:
number- TheRoom.number.type- Represents the extending Room class.floor- TheRoom.floor.capacity- TheRoom.capacity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecapacityrecord component.private final intThe field for thefloorrecord component.private final @NonNull StringThe field for thenumberrecord component.private final @NonNull RoomTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRoomSummaryDTO(@NonNull String number, @NonNull RoomType type, int floor, int capacity) Creates an instance of aRoomSummaryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Returns the value of thecapacityrecord component.final booleanIndicates whether some other object is "equal to" this one.intfloor()Returns the value of thefloorrecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringnumber()Returns the value of thenumberrecord component.final StringtoString()Returns a string representation of this record class.@NonNull RoomTypetype()Returns the value of thetyperecord component.
-
Field Details
-
Constructor Details
-
RoomSummaryDTO
-
-
Method Details
-
toString
-
hashCode
-
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
number
-
type
-
floor
-
capacity
-