Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/animation/IntEvaluator#pubctors) \| [Methods](https://developer.android.com/reference/android/animation/IntEvaluator#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/animation/IntEvaluator#inhmethods)

# IntEvaluator

*** ** * ** ***

` public class IntEvaluator `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/animation/TypeEvaluator<https://developer.android.com/reference/java/lang/Integer> `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.animation.IntEvaluator |

<br />

*** ** * ** ***

This evaluator can be used to perform type interpolation between `int` values.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/animation/IntEvaluator#IntEvaluator()() ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/Integer` | ` https://developer.android.com/reference/android/animation/IntEvaluator#evaluate(float,%20java.lang.Integer,%20java.lang.Integer)(float fraction, https://developer.android.com/reference/java/lang/Integer startValue, https://developer.android.com/reference/java/lang/Integer endValue) ` This function returns the result of linearly interpolating the start and end values, with `fraction` representing the proportion between the start and end values. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/animation/TypeEvaluator ` ` abstract https://developer.android.com/reference/java/lang/Integer` ` https://developer.android.com/reference/android/animation/TypeEvaluator#evaluate(float,%20T,%20T)(float fraction, https://developer.android.com/reference/java/lang/Integer startValue, https://developer.android.com/reference/java/lang/Integer endValue) `

This function returns the result of linearly interpolating the start and end values, with `fraction` representing the proportion between the start and end values.

## Public constructors

### IntEvaluator

```
public IntEvaluator ()
```

<br />

<br />

## Public methods

### evaluate

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Integer evaluate (float fraction, 
                Integer startValue, 
                Integer endValue)
```

This function returns the result of linearly interpolating the start and end values, with `fraction` representing the proportion between the start and end values. The calculation is a simple parametric calculation: `result = x0 + t * (x1 - x0)`, where `x0` is `startValue`, `x1` is `endValue`, and `t` is `fraction`.

<br />

| Parameters ||
|---|---|
| `fraction` | `float`: The fraction from the starting to the ending values <br /> |
| `startValue` | `Integer`: The start value; should be of type `int` or `Integer` <br /> |
| `endValue` | `Integer`: The end value; should be of type `int` or `Integer` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Integer` | A linear interpolation between the start and end values, given the `fraction` parameter. <br /> |