org.apache.pdfbox.pdfviewer
public class: MapEntry [javadoc |
source]
java.lang.Object
org.apache.pdfbox.pdfviewer.MapEntry
This is a simple class that will contain a key and a value.
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.pdfbox.pdfviewer.MapEntry Detail: |
public Object getKey() {
return key;
}
Get the key for this entry. |
public Object getValue() {
return value;
}
This will get the value for this entry. |
public void setKey(Object k) {
key = k;
}
This will set the key for this entry. |
public void setValue(Object val) {
this.value = val;
}
This will set the value for this entry. |
public String toString() {
String retval = null;
if( key instanceof COSName )
{
retval = ((COSName)key).getName();
}
else
{
retval = "" +key;
}
return retval;
}
This will output a string representation of this class. |