public class Room extends AbstractPersistable implements Labeled
id
Constructor and Description |
---|
Room() |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity() |
String |
getLabel() |
int |
getPenalty() |
void |
setCapacity(int capacity) |
void |
setPenalty(int penalty) |
String |
toString() |
Room |
withCapacity(int capacity) |
Room |
withId(long id) |
Room |
withPenalty(int penalty) |
getId, setId
public int getCapacity()
public void setCapacity(int capacity)
public int getPenalty()
public void setPenalty(int penalty)
public String toString()
toString
in class AbstractPersistable
public Room withId(long id)
public Room withCapacity(int capacity)
public Room withPenalty(int penalty)
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.