jpos.profile
Class FloatPropType
java.lang.Object
|
+--jpos.profile.AbstractPropType
|
+--jpos.profile.FloatPropType
- All Implemented Interfaces:
- PropType, java.io.Serializable
- public class FloatPropType
- extends AbstractPropType
- implements PropType, java.io.Serializable
Defines a Float property type
- Since:
- 1.3 (SF 2K meeting)
- Author:
- E. Michael Maximilien (maxim@us.ibm.com)
- See Also:
- Serialized Form
Constructor Summary |
(package private) |
FloatPropType()
Default ctor |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FloatPropType
FloatPropType()
- Default ctor
getInstance
public static PropType getInstance()
- Returns:
- the unique instance of this class (create if necessary)
toString
public java.lang.String toString()
- Specified by:
toString
in interface PropType
- Overrides:
toString
in class AbstractPropType
- Returns:
- a String representation of this PropType
getJavaTypeClass
public java.lang.Class getJavaTypeClass()
- Specified by:
getJavaTypeClass
in interface PropType
- Overrides:
getJavaTypeClass
in class AbstractPropType
- Returns:
- a Java class that defines this type
isValidValue
public boolean isValidValue(float f)
- Parameters:
f
- the float primitive type- Returns:
- true if the object passed is of this PropType
isValidValue
public boolean isValidValue(java.lang.Object obj)
- Specified by:
isValidValue
in interface PropType
- Overrides:
isValidValue
in class AbstractPropType
- Parameters:
obj
- the Java Object- Returns:
- true if the object passed is of this PropType
isValidValue
public boolean isValidValue(PropValue propValue)
- Specified by:
isValidValue
in interface PropType
- Overrides:
isValidValue
in class AbstractPropType
- Parameters:
propValue
- the PropValue- Returns:
- true if the PropValue passed is of this PropType
This API and code belongs to the JavaPOS committee please see LISCENCE file for details