[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/util/IntProperty [Back]  [Original]

IntProperty  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

IntProperty


public abstract class IntProperty
extends Property<T, Integer>

java.lang.Object
   ↳ android.util.Property<T, java.lang.Integer>
     ↳ android.util.IntProperty<T>


An implementation of Property to be used specifically with fields of type int. This type-specific subclass enables performance benefit by allowing calls to a setValue() function that takes the primitive int type and avoids autoboxing and other overhead associated with the Integer class.

Summary

Public constructors

IntProperty(String name)

Public methods

final void set(T object, Integer value)

Sets the value on object which this property represents.

abstract void setValue(T object, int value)

A type-specific variant of set(Object,Integer) that is faster when dealing with fields of type int.

Inherited methods

Public constructors

IntProperty

Added in API level 24
public IntProperty (String name)

Parameters
name String

Public methods

set

Added in API level 24
public final void set (T object, 
                Integer value)

Sets the value on object which this property represents. If the method is unable to set the value on the target object it will throw an UnsupportedOperationException exception.

Parameters
object T

value Integer

setValue

Added in API level 24
public abstract void setValue (T object, 
                int value)

A type-specific variant of set(Object,Integer) that is faster when dealing with fields of type int.

Parameters
object T

value int

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page