public final class PropertyValue extends Object implements Comparable<PropertyValue>
Record
Constructor and Description |
---|
PropertyValue(String name,
String value)
Constructs a new PropertyValue with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PropertyValue propVal) |
boolean |
equals(Object other) |
String |
getName() |
String |
getValue() |
int |
hashCode() |
static PropertyValue |
toPropertyValue(String name,
Object value) |
String |
toString() |
public PropertyValue(String name, String value)
name
- the name of the PropertyValuevalue
- the value of the PropertyValueNullPointerException
- if name or value is nullpublic String getName()
public String getValue()
public int compareTo(PropertyValue propVal)
compareTo
in interface Comparable<PropertyValue>
public static PropertyValue toPropertyValue(String name, Object value)
Copyright © 2007, 2015, Oracle and/or its affiliates. All rights reserved.