Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d17ee04 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Un-hide FloatProperty and IntProperty"

parents 094f08ef 8240c97b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -34268,6 +34268,18 @@ package android.util {
  public deprecated class FloatMath {
  }
  public abstract class FloatProperty extends android.util.Property {
    ctor public FloatProperty(java.lang.String);
    method public final void set(T, java.lang.Float);
    method public abstract void setValue(T, float);
  }
  public abstract class IntProperty extends android.util.Property {
    ctor public IntProperty(java.lang.String);
    method public final void set(T, java.lang.Integer);
    method public abstract void setValue(T, int);
  }
  public final class JsonReader implements java.io.Closeable {
    ctor public JsonReader(java.io.Reader);
    method public void beginArray() throws java.io.IOException;
+12 −0
Original line number Diff line number Diff line
@@ -36566,6 +36566,18 @@ package android.util {
  public deprecated class FloatMath {
  }
  public abstract class FloatProperty extends android.util.Property {
    ctor public FloatProperty(java.lang.String);
    method public final void set(T, java.lang.Float);
    method public abstract void setValue(T, float);
  }
  public abstract class IntProperty extends android.util.Property {
    ctor public IntProperty(java.lang.String);
    method public final void set(T, java.lang.Integer);
    method public abstract void setValue(T, int);
  }
  public final class JsonReader implements java.io.Closeable {
    ctor public JsonReader(java.io.Reader);
    method public void beginArray() throws java.io.IOException;
+2 −6
Original line number Diff line number Diff line
@@ -15,18 +15,14 @@
 */
package android.util;

import android.util.Property;

/**
 * An implementation of {@link android.util.Property} to be used specifically with fields of type
 * <code>float</code>. This type-specific subclass enables performance benefit by allowing
 * calls to a {@link #set(Object, Float) set()} function that takes the primitive
 * calls to a {@link #setValue(Object, float) setValue()} function that takes the primitive
 * <code>float</code> type and avoids autoboxing and other overhead associated with the
 * <code>Float</code> class.
 *
 * @param <T> The class on which the Property is declared.
 *
 * @hide
 */
public abstract class FloatProperty<T> extends Property<T, Float> {

@@ -35,7 +31,7 @@ public abstract class FloatProperty<T> extends Property<T, Float> {
    }

    /**
     * A type-specific override of the {@link #set(Object, Float)} that is faster when dealing
     * A type-specific variant of {@link #set(Object, Float)} that is faster when dealing
     * with fields of type <code>float</code>.
     */
    public abstract void setValue(T object, float value);
+2 −6
Original line number Diff line number Diff line
@@ -15,18 +15,14 @@
 */
package android.util;

import android.util.Property;

/**
 * An implementation of {@link android.util.Property} to be used specifically with fields of type
 * <code>int</code>. This type-specific subclass enables performance benefit by allowing
 * calls to a {@link #set(Object, Integer) set()} function that takes the primitive
 * calls to a {@link #setValue(Object, int) setValue()} function that takes the primitive
 * <code>int</code> type and avoids autoboxing and other overhead associated with the
 * <code>Integer</code> class.
 *
 * @param <T> The class on which the Property is declared.
 *
 * @hide
 */
public abstract class IntProperty<T> extends Property<T, Integer> {

@@ -35,7 +31,7 @@ public abstract class IntProperty<T> extends Property<T, Integer> {
    }

    /**
     * A type-specific override of the {@link #set(Object, Integer)} that is faster when dealing
     * A type-specific variant of {@link #set(Object, Integer)} that is faster when dealing
     * with fields of type <code>int</code>.
     */
    public abstract void setValue(T object, int value);