Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


oracle.adf.view.rich.model
Class NumberRange<E extends java.lang.Number>

java.lang.Object
  extended by oracle.adf.view.rich.model.NumberRange<E>

All Implemented Interfaces:
java.io.Serializable

public final class NumberRange<E extends java.lang.Number>
extends java.lang.Object
implements java.io.Serializable

Class representing a numeric range based on starting and ending numbers. The numbers can be passed in in any order with the correct values assigned to the minimum and maximum values for the range.

Instances of this class are thread-safe and immutable as long as the Numbers used to create the NumberRange are immutable.

See Also:
Serialized Form

Constructor Summary
NumberRange(E number1, E number2)
           

 

Method Summary
 boolean equals(java.lang.Object o)
           
 E getMaximum()
          Returns the maximum of the two numbers the NumberRange was created with.
 E getMinimum()
          Returns the minimum of the two numbers the NumberRange was created with.
 int hashCode()
           
 java.lang.String toString()
          Returns a string version of the NumberRange.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

NumberRange

public NumberRange(E number1,
                   E number2)

Method Detail

getMinimum

public E getMinimum()
Returns the minimum of the two numbers the NumberRange was created with.

getMaximum

public E getMaximum()
Returns the maximum of the two numbers the NumberRange was created with.

toString

public java.lang.String toString()
Returns a string version of the NumberRange.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.