Home | History | Annotate | Download | only in method

Lines Matching refs:DigitsKeyListener

43 public class DigitsKeyListener extends NumberKeyListener
95 * Allocates a DigitsKeyListener that accepts the ASCII digits 0 through 9.
97 * @deprecated Use {@link #DigitsKeyListener(Locale)} instead.
100 public DigitsKeyListener() {
105 * Allocates a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus
109 * @deprecated Use {@link #DigitsKeyListener(Locale, boolean, boolean)} instead.
112 public DigitsKeyListener(boolean sign, boolean decimal) {
116 public DigitsKeyListener(@Nullable Locale locale) {
155 public DigitsKeyListener(@Nullable Locale locale, boolean sign, boolean decimal) {
209 private DigitsKeyListener(@NonNull final String accepted) {
222 * Returns a DigitsKeyListener that accepts the ASCII digits 0 through 9.
228 public static DigitsKeyListener getInstance() {
233 * Returns a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus
241 public static DigitsKeyListener getInstance(boolean sign, boolean decimal) {
246 * Returns a DigitsKeyListener that accepts the locale-appropriate digits.
249 public static DigitsKeyListener getInstance(@Nullable Locale locale) {
255 private static final HashMap<Locale, DigitsKeyListener[]> sLocaleInstanceCache =
259 * Returns a DigitsKeyListener that accepts the locale-appropriate digits, plus the
264 public static DigitsKeyListener getInstance(
268 DigitsKeyListener[] cachedValue = sLocaleInstanceCache.get(locale);
273 cachedValue = new DigitsKeyListener[4];
276 return cachedValue[kind] = new DigitsKeyListener(locale, sign, decimal);
282 private static final HashMap<String, DigitsKeyListener> sStringInstanceCache = new HashMap<>();
285 * Returns a DigitsKeyListener that accepts only the characters
290 public static DigitsKeyListener getInstance(@NonNull String accepted) {
291 DigitsKeyListener result;
295 result = new DigitsKeyListener(accepted);
303 * Returns a DigitsKeyListener based on an the settings of a existing DigitsKeyListener, with
309 public static DigitsKeyListener getInstance(
311 @NonNull DigitsKeyListener listener) {