public class NamedEntity<T> extends Object
which is particularly useful when you're supposed to marshall/unmarshall lists formatted like:
For more explanation see UT for this class.
Modifier | Constructor and Description |
---|---|
protected |
NamedEntity() |
|
NamedEntity(String name,
T value) |
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.base.Function<NamedEntity<? extends T>,T> |
extract() |
String |
getName() |
T |
getValue() |
void |
setName(String name) |
void |
setValue(T value) |
public static <T> com.google.common.base.Function<NamedEntity<? extends T>,T> extract()
public String getName()
public void setName(String name)
public T getValue()
public void setValue(T value)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.