public class JCardValue extends Object
Constructor and Description |
---|
JCardValue(JsonValue... values)
Creates a new jCard value.
|
JCardValue(List<JsonValue> values)
Creates a new jCard value.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
asMulti()
Gets the value of a multi-valued property (such as
Categories ). |
String |
asSingle()
Gets the value of a single-valued property (such as
Note ). |
List<List<String>> |
asStructured()
Gets the value of a structured property (such as
StructuredName ). |
boolean |
equals(Object o) |
List<JsonValue> |
getValues()
Gets all the JSON values.
|
int |
hashCode() |
static JCardValue |
multi(List<?> values)
Creates a multi-valued value.
|
static JCardValue |
multi(Object... values)
Creates a multi-valued value.
|
static JCardValue |
single(Object value)
Creates a single-valued value.
|
static JCardValue |
structured(List<List<?>> values)
Creates a structured value.
|
static JCardValue |
structured(Object... values)
Creates a structured value.
|
public JCardValue(List<JsonValue> values)
values
- the valuespublic JCardValue(JsonValue... values)
values
- the valuespublic static JCardValue single(Object value)
value
- the valuepublic static JCardValue multi(Object... values)
values
- the valuespublic static JCardValue multi(List<?> values)
values
- the valuespublic static JCardValue structured(Object... values)
Creates a structured value.
This method accepts a vararg of Object
instances. List
objects will be treated as multi-valued components. Null objects will be
treated as empty components.
values
- the valuespublic static JCardValue structured(List<List<?>> values)
values
- the valuespublic String asSingle()
Note
).public List<List<String>> asStructured()
StructuredName
).public List<String> asMulti()
Categories
).Copyright © 2012–2023 Michael Angstadt. All rights reserved.