# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# AccessibilityNodeInfo.RangeInfo

`public static final class AccessibilityNodeInfo.RangeInfo`
`extends Object` ``

java.lang.Object
↳ | android.view.accessibility.AccessibilityNodeInfo.RangeInfo

Class with information if a node is a range. Use `RangeInfo#obtain(int, float, float, float)` to get an instance. Recycling is handled by the `AccessibilityNodeInfo` to which this object is attached.

## Summary

### Constants
`int` | `RANGE_TYPE_FLOAT` Range type: float.
`int` | `RANGE_TYPE_INT` Range type: integer.
`int` | `RANGE_TYPE_PERCENT` Range type: percent with values from zero to one.

### Public constructors
`RangeInfo(int type, float min, float max, float current)` Creates a new range.

### Public methods
`float` | `getCurrent()` Gets the current value.
`float` | `getMax()` Gets the maximum value.
`float` | `getMin()` Gets the minimum value.
`int` | `getType()` Gets the range type.
`static AccessibilityNodeInfo.RangeInfo` | `obtain(int type, float min, float max, float current)` Obtains a pooled instance.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### RANGE_TYPE_FLOAT

    public static final int RANGE_TYPE_FLOAT

Range type: float.

Constant Value: 1 (0x00000001)

### RANGE_TYPE_INT

    public static final int RANGE_TYPE_INT

Range type: integer.

Constant Value: 0 (0x00000000)

### RANGE_TYPE_PERCENT

    public static final int RANGE_TYPE_PERCENT

Range type: percent with values from zero to one.

Constant Value: 2 (0x00000002)

## Public constructors

### RangeInfo

    public RangeInfo (int type,
                    float min,
                    float max,
                    float current)

Creates a new range.

Parameters
`type` | `int`: The type of the range.
`min` | `float`: The minimum value. Use `Float.NEGATIVE_INFINITY` if the range has no minimum.
`max` | `float`: The maximum value. Use `Float.POSITIVE_INFINITY` if the range has no maximum.
`current` | `float`: The current value.

## Public methods

### getCurrent

    public float getCurrent ()

Gets the current value.

Returns
`float` | The current value.

### getMax

    public float getMax ()

Gets the maximum value.

Returns
`float` | The maximum value, or `Float.POSITIVE_INFINITY` if no maximum exists.

### getMin

    public float getMin ()

Gets the minimum value.

Returns
`float` | The minimum value, or `Float.NEGATIVE_INFINITY` if no minimum exists.

### getType

    public int getType ()

Gets the range type.

Returns
`int` | The range type.

See also:

- `RANGE_TYPE_INT`
- `RANGE_TYPE_FLOAT`
- `RANGE_TYPE_PERCENT`

### obtain

    public static AccessibilityNodeInfo.RangeInfo obtain (int type,
                    float min,
                    float max,
                    float current)

Obtains a pooled instance.

In most situations object pooling is not beneficial. Create a new instance using the constructor `AccessibilityNodeInfo.RangeInfo#RangeInfo(int, float, float, float)` instead.

Parameters
`type` | `int`: The type of the range.
`min` | `float`: The minimum value. Use `Float.NEGATIVE_INFINITY` if the range has no minimum.
`max` | `float`: The maximum value. Use `Float.POSITIVE_INFINITY` if the range has no maximum.
`current` | `float`: The current value.

Returns
`AccessibilityNodeInfo.RangeInfo` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*