diff options
| author | Jesse Wilson <jessewilson@google.com> | 2011-02-24 10:44:33 -0800 |
|---|---|---|
| committer | Jesse Wilson <jessewilson@google.com> | 2011-02-24 10:46:22 -0800 |
| commit | a0f8bc51aff98c2e23e73069e447f63397471a0a (patch) | |
| tree | 4a4b5ae01d3320818cf41a95e2939fd9f8b7e54f /core/java/android/util/StateSet.java | |
| parent | 7b76c8d3fc25aedea6edfed9638b008faa2f6ae8 (diff) | |
Remove default constructors from static utility classes.
Change-Id: Id8dc55a30a03e1da87500b66c429de9268033b9e
http://b/3344646
Diffstat (limited to 'core/java/android/util/StateSet.java')
| -rw-r--r-- | core/java/android/util/StateSet.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/java/android/util/StateSet.java b/core/java/android/util/StateSet.java index 21d8e454663e..2623638d781b 100644 --- a/core/java/android/util/StateSet.java +++ b/core/java/android/util/StateSet.java @@ -36,13 +36,14 @@ import com.android.internal.R; */ public class StateSet { + /** @hide */ public StateSet() {} public static final int[] WILD_CARD = new int[0]; public static final int[] NOTHING = new int[] { 0 }; /** * Return whether the stateSetOrSpec is matched by all StateSets. - * + * * @param stateSetOrSpec a state set or state spec. */ public static boolean isWildCard(int[] stateSetOrSpec) { @@ -51,7 +52,7 @@ public class StateSet { /** * Return whether the stateSet matches the desired stateSpec. - * + * * @param stateSpec an array of required (if positive) or * prohibited (if negative) {@link android.view.View} states. * @param stateSet an array of {@link android.view.View} states @@ -111,7 +112,7 @@ public class StateSet { /** * Return whether the state matches the desired stateSpec. - * + * * @param stateSpec an array of required (if positive) or * prohibited (if negative) {@link android.view.View} states. * @param state a {@link android.view.View} state @@ -148,13 +149,13 @@ public class StateSet { System.arraycopy(states, 0, trimmedStates, 0, newSize); return trimmedStates; } - + public static String dump(int[] states) { StringBuilder sb = new StringBuilder(); - + int count = states.length; for (int i = 0; i < count; i++) { - + switch (states[i]) { case R.attr.state_window_focused: sb.append("W "); @@ -173,7 +174,7 @@ public class StateSet { break; } } - + return sb.toString(); } } |
