FloatProperty
public
abstract
class
FloatProperty
extends Property<T, Float>
| java.lang.Object | ||
| ↳ | android.util.Property<T, java.lang.Float> | |
| ↳ | android.util.FloatProperty<T> | |
An implementation of Property to be used specifically with fields of type
float. This type-specific subclass enables performance benefit by allowing
calls to a setValue() function that takes the primitive
float type and avoids autoboxing and other overhead associated with the
Float class.
Summary
Public constructors | |
|---|---|
FloatProperty(String name)
|
|
Public methods | |
|---|---|
final
void
|
set(T object, Float value)
Sets the value on |
abstract
void
|
setValue(T object, float value)
A type-specific variant of |
Inherited methods | |
|---|---|
android.util.Property
| |
java.lang.Object
| |
Public constructors
Public methods
set
void set (T object,
Float 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 |
Float |
setValue
void setValue (T object,
float value)
A type-specific variant of set(Object, Float) that is faster when dealing
with fields of type float.
| Parameters | |
|---|---|
object |
T |
value |
float |
Interfaces
Classes
- ArrayMap
- ArraySet
- AtomicFile
- Base64
- Base64InputStream
- Base64OutputStream
- Config
- DebugUtils
- DisplayMetrics
- EventLog
- EventLog.Event
- EventLogTags
- EventLogTags.Description
- FloatMath
- FloatProperty
- Half
- IntProperty
- JsonReader
- JsonWriter
- LayoutDirection
- Log
- LogPrinter
- LongSparseArray
- LruCache
- MonthDisplayHelper
- MutableBoolean
- MutableByte
- MutableChar
- MutableDouble
- MutableFloat
- MutableInt
- MutableLong
- MutableShort
- Pair
- Patterns
- PrintStreamPrinter
- PrintWriterPrinter
- Property
- Range
- Rational
- Size
- SizeF
- SparseArray
- SparseBooleanArray
- SparseIntArray
- SparseLongArray
- StateSet
- StringBuilderPrinter
- TimeUtils
- TimingLogger
- TypedValue
- Xml
Enums
Exceptions