Record Class PrivateRoom
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateRoom
(Long roomid, String image, String title, String content, Long west, Long east, Long north, Long south, Long up, Long down, List<PrivatePerson> persons, List<PrivateItem> items, Position minimum, Position maximum, Position center) Creates an instance of aPrivateRoom
record class.PrivateRoom
(Room room) -
Method Summary
Modifier and TypeMethodDescriptioncenter()
Returns the value of thecenter
record component.content()
Returns the value of thecontent
record component.static PrivateRoom
down()
Returns the value of thedown
record component.east()
Returns the value of theeast
record component.final boolean
Indicates whether some other object is "equal to" this one.static PrivateRoom
final int
hashCode()
Returns a hash code value for this object.image()
Returns the value of theimage
record component.items()
Returns the value of theitems
record component.maximum()
Returns the value of themaximum
record component.minimum()
Returns the value of theminimum
record component.north()
Returns the value of thenorth
record component.persons()
Returns the value of thepersons
record component.roomid()
Returns the value of theroomid
record component.south()
Returns the value of thesouth
record component.title()
Returns the value of thetitle
record component.toJson()
final String
toString()
Returns a string representation of this record class.up()
Returns the value of theup
record component.west()
Returns the value of thewest
record component.
-
Constructor Details
-
PrivateRoom
public PrivateRoom(Long roomid, String image, String title, String content, Long west, Long east, Long north, Long south, Long up, Long down, List<PrivatePerson> persons, List<PrivateItem> items, Position minimum, Position maximum, Position center) Creates an instance of aPrivateRoom
record class.- Parameters:
roomid
- the value for theroomid
record componentimage
- the value for theimage
record componenttitle
- the value for thetitle
record componentcontent
- the value for thecontent
record componentwest
- the value for thewest
record componenteast
- the value for theeast
record componentnorth
- the value for thenorth
record componentsouth
- the value for thesouth
record componentup
- the value for theup
record componentdown
- the value for thedown
record componentpersons
- the value for thepersons
record componentitems
- the value for theitems
record componentminimum
- the value for theminimum
record componentmaximum
- the value for themaximum
record componentcenter
- the value for thecenter
record component
-
PrivateRoom
-
-
Method Details
-
createCoordinatesPrivateRoom
-
toJson
-
fromJson
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
roomid
Returns the value of theroomid
record component.- Returns:
- the value of the
roomid
record component
-
image
Returns the value of theimage
record component.- Returns:
- the value of the
image
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-
west
Returns the value of thewest
record component.- Returns:
- the value of the
west
record component
-
east
Returns the value of theeast
record component.- Returns:
- the value of the
east
record component
-
north
Returns the value of thenorth
record component.- Returns:
- the value of the
north
record component
-
south
Returns the value of thesouth
record component.- Returns:
- the value of the
south
record component
-
up
Returns the value of theup
record component.- Returns:
- the value of the
up
record component
-
down
Returns the value of thedown
record component.- Returns:
- the value of the
down
record component
-
persons
Returns the value of thepersons
record component.- Returns:
- the value of the
persons
record component
-
items
Returns the value of theitems
record component.- Returns:
- the value of the
items
record component
-
minimum
Returns the value of theminimum
record component.- Returns:
- the value of the
minimum
record component
-
maximum
Returns the value of themaximum
record component.- Returns:
- the value of the
maximum
record component
-
center
Returns the value of thecenter
record component.- Returns:
- the value of the
center
record component
-