com.endeca.itl.record
Class PropertyValue

java.lang.Object
  extended by 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

Constructor Summary
PropertyValue(String name, String value)
          Constructs a new PropertyValue with the given name and value.
 
Method Summary
 int compareTo(PropertyValue propVal)
           
 boolean equals(Object other)
           
 String getName()
           
 String getValue()
           
 int hashCode()
           
static PropertyValue toPropertyValue(String name, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyValue

public PropertyValue(String name,
                     String value)
Constructs a new PropertyValue with the given name and value.

Parameters:
name - the name of the PropertyValue
value - the value of the PropertyValue
Throws:
NullPointerException - if name or value is null
Method Detail

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.