Constructor and Description |
---|
PersonRec(String name,
String phone)
Create a new PersonRec instance
|
Modifier and Type | Method and Description |
---|---|
static PersonRec |
fromJson(javax.json.JsonObject json)
Turn jet json into a PersonRec instance
|
String |
getName()
Get the persons name
|
String |
getPhone()
Get the phone number
|
javax.json.JsonObject |
toJSON()
Turn this object into json
|
String |
toString() |
public static PersonRec fromJson(javax.json.JsonObject json)
json
- Jet jsonpublic String getName()
public String getPhone()
public javax.json.JsonObject toJSON()
Copyright © 2017. All rights reserved.