Class SquareServantKey
- java.lang.Object
-
- io.naradrama.prologue.domain.office.ServantKey
-
- io.naradrama.prologue.domain.office.SquareServantKey
-
- All Implemented Interfaces:
JsonSerializable
public class SquareServantKey extends ServantKey
-
-
Field Summary
-
Fields inherited from class io.naradrama.prologue.domain.office.ServantKey
SERVANT_DELIMITER
-
-
Constructor Summary
Constructors Constructor Description SquareServantKey(SquareOfficeKey squareOfficeKey, long squareServantSequence)SquareServantKey(java.lang.String squareServantId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SquareServantKeyfromId(java.lang.String squareServantId)static SquareServantKeyfromJson(java.lang.String json)SquareOfficeKeygenSquareOfficeKey()static voidmain(java.lang.String[] args)static SquareServantKeynewKey(SquareOfficeKey squareOfficeKey, long squareServantSequence)static SquareServantKeysample()java.lang.StringtoString()-
Methods inherited from class io.naradrama.prologue.domain.office.ServantKey
equals, hashCode, parseToOfficeKey
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.naradrama.prologue.util.json.JsonSerializable
toJson, toPrettyJson
-
-
-
-
Constructor Detail
-
SquareServantKey
public SquareServantKey(java.lang.String squareServantId)
-
SquareServantKey
public SquareServantKey(SquareOfficeKey squareOfficeKey, long squareServantSequence)
-
-
Method Detail
-
newKey
public static SquareServantKey newKey(SquareOfficeKey squareOfficeKey, long squareServantSequence)
-
fromId
public static SquareServantKey fromId(java.lang.String squareServantId)
-
genSquareOfficeKey
public SquareOfficeKey genSquareOfficeKey()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classServantKey
-
fromJson
public static SquareServantKey fromJson(java.lang.String json)
-
sample
public static SquareServantKey sample()
-
main
public static void main(java.lang.String[] args)
-
-