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)
NamedValueImpl
id
- - the identifierpublic NamedValueImpl(int id, String description)
NamedValueImpl
id
- - the identifierdescription
- - a String
describing the new instancepublic int getId()
getId
in interface NamedValue
public String getDescription()
getDescription
in interface NamedValue
Copyright © 2016–2025. All rights reserved.