org.solovyev.android.view
Class NumberRange<N extends Number & Comparable<N>>

java.lang.Object
  extended by 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)
           
 
Method Summary
 int getCount()
           
protected abstract  int getCount(N min, N max, N step)
           
 int getStartPosition()
           
 String getStringValueAt(int position)
           
 N getValueAt(int position)
           
protected abstract  N getValueAt(int position, N min, N max, N step)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberRange

public NumberRange(@Nonnull
                   N min,
                   @Nonnull
                   N max,
                   @Nonnull
                   N step,
                   int startPosition,
                   @Nullable
                   org.solovyev.common.text.Formatter<N> formatter)
Method Detail

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.