com.arunta.app.bom
Class ExtensionRange
java.lang.Object
com.arunta.app.bom.ExtensionRange
- All Implemented Interfaces:
- java.io.Serializable
public class ExtensionRange
- extends java.lang.Object
- implements java.io.Serializable
Bean that defines a range of extensions, for example: 2000 - 2999.
- See Also:
- Serialized Form
Constructor Summary |
ExtensionRange(java.lang.String firstExtension,
java.lang.String lastExtension)
Create an instance of this bean for the specified extension range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExtensionRange
public ExtensionRange(java.lang.String firstExtension,
java.lang.String lastExtension)
- Create an instance of this bean for the specified extension range.
- Parameters:
firstExtension
- The first extension in the range. For example: 2000.lastExtension
- The last extension in the range. For example: 2999.
getFirstExtension
public java.lang.String getFirstExtension()
- Returns:
- The first extension in the range.
getLastExtension
public java.lang.String getLastExtension()
- Returns:
- The last extension in the range.
inRange
public boolean inRange(java.lang.String ext)
- Test if the specified extension is in the range.
- Parameters:
ext
- The extension to test.
- Returns:
true
if the extension is in the range. false
otherwise.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.