org.solovyev.android.view
Class NumberRange<N extends Number & Comparable<N>>
java.lang.Object
org.solovyev.android.view.NumberRange<N>
- All Implemented Interfaces:
- Picker.Range<N>
- Direct Known Subclasses:
- DoubleRange, IntegerRange
public abstract class NumberRange<N extends Number & Comparable<N>>
- extends Object
- implements Picker.Range<N>
User: serso
Date: 8/9/12
Time: 11:44 PM
|
Constructor Summary |
NumberRange(N min,
N max,
N step,
int startPosition,
org.solovyev.common.text.Formatter<N> formatter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberRange
public NumberRange(@Nonnull
N min,
@Nonnull
N max,
@Nonnull
N step,
int startPosition,
@Nullable
org.solovyev.common.text.Formatter<N> formatter)
getStartPosition
public int getStartPosition()
- Specified by:
getStartPosition in interface Picker.Range<N extends Number & Comparable<N>>
getCount
public int getCount()
- Specified by:
getCount in interface Picker.Range<N extends Number & Comparable<N>>
getCount
protected abstract int getCount(@Nonnull
N min,
@Nonnull
N max,
@Nonnull
N step)
getStringValueAt
@Nonnull
public String getStringValueAt(int position)
- Specified by:
getStringValueAt in interface Picker.Range<N extends Number & Comparable<N>>
getValueAt
@Nonnull
public N getValueAt(int position)
- Specified by:
getValueAt in interface Picker.Range<N extends Number & Comparable<N>>
getValueAt
@Nonnull
protected abstract N getValueAt(int position,
@Nonnull
N min,
@Nonnull
N max,
@Nonnull
N step)
Copyright © 2014 se.solovyev. All Rights Reserved.