org.knime.core.node.config
Class ConfigLongEntry

java.lang.Object
  extended by org.knime.core.node.config.AbstractConfigEntry
      extended by org.knime.core.node.config.ConfigLongEntry
All Implemented Interfaces:
Serializable, TreeNode

final class ConfigLongEntry
extends AbstractConfigEntry

Config entry for long values.

Author:
Thomas Gabriel, University of Konstanz

Constructor Summary
ConfigLongEntry(String key, long l)
          Creates a new Config entry for an long value.
ConfigLongEntry(String key, String l)
          Creates a new Config entry for a long value.
 
Method Summary
 long getLong()
           
protected  boolean hasIdenticalValue(AbstractConfigEntry ace)
          Derived classes must compare their value with the value in the passed argument (on equality).
 String toStringValue()
          Returns a String representation for this Config entry which is the used to re-load this Config entry.
 
Methods inherited from class org.knime.core.node.config.AbstractConfigEntry
children, equals, getAllowsChildren, getChildAt, getChildCount, getIndex, getKey, getParent, getType, hashCode, isIdentical, isLeaf, setKey, setParent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigLongEntry

ConfigLongEntry(String key,
                long l)
Creates a new Config entry for an long value.

Parameters:
key - The key for this value.
l - The long value.

ConfigLongEntry

ConfigLongEntry(String key,
                String l)
Creates a new Config entry for a long value.

Parameters:
key - The key for this value.
l - The long value as String.
Method Detail

getLong

public long getLong()
Returns:
The long value.

toStringValue

public String toStringValue()
Description copied from class: AbstractConfigEntry
Returns a String representation for this Config entry which is the used to re-load this Config entry.

Specified by:
toStringValue in class AbstractConfigEntry
Returns:
A String representation of this long.
See Also:
Long.toString(long)

hasIdenticalValue

protected boolean hasIdenticalValue(AbstractConfigEntry ace)
Derived classes must compare their value with the value in the passed argument (on equality). They can safely assume that the specified object has the same java class, the same type and key.

Specified by:
hasIdenticalValue in class AbstractConfigEntry
Parameters:
ace - the argument to compare the value with
Returns:
true if the specified argument stores the same value as this.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.