public class NamedValueImpl extends Object implements NamedValue
NamedValue| Constructor and Description |
|---|
NamedValueImpl(int id)
Initializes a new instance of
NamedValueImpl |
NamedValueImpl(int id,
String description)
Initializes a new instance of
NamedValueImpl |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of the current instance
|
int |
getId()
Returns the identifier of the current instance
|
public NamedValueImpl(int id)
NamedValueImplid - - the identifierpublic NamedValueImpl(int id,
String description)
NamedValueImplid - - the identifierdescription - - a String describing the new instancepublic int getId()
getId in interface NamedValuepublic String getDescription()
getDescription in interface NamedValueCopyright © 2016–2025. All rights reserved.