com.endeca.itl.record
Class PropertyValue
java.lang.Object
com.endeca.itl.record.PropertyValue
- All Implemented Interfaces:
- Comparable<PropertyValue>
public final class PropertyValue
- extends Object
- implements Comparable<PropertyValue>
A property value assignment on a Record consisting of a property name
and a property value.
- See Also:
Record
PropertyValue
public PropertyValue(String name,
String value)
- Constructs a new PropertyValue with the given name and value.
- Parameters:
name
- the name of the PropertyValuevalue
- the value of the PropertyValue
- Throws:
NullPointerException
- if name or value is null
getName
public String getName()
getValue
public String getValue()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
compareTo
public int compareTo(PropertyValue propVal)
- Specified by:
compareTo
in interface Comparable<PropertyValue>
toString
public String toString()
- Overrides:
toString
in class Object
toPropertyValue
public static PropertyValue toPropertyValue(String name,
Object value)
Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.