org.solovyev.android.view
Class IntegerRange

java.lang.Object
  extended by org.solovyev.android.view.NumberRange<Integer>
      extended by org.solovyev.android.view.IntegerRange
All Implemented Interfaces:
Picker.Range<Integer>

public class IntegerRange
extends NumberRange<Integer>

User: serso Date: 8/10/12 Time: 12:08 AM


Constructor Summary
IntegerRange(Integer min, Integer max, Integer step, int startPosition, org.solovyev.common.text.Formatter<Integer> formatter)
           
 
Method Summary
protected  int getCount(Integer min, Integer max, Integer step)
           
protected  Integer getValueAt(int position, Integer min, Integer max, Integer step)
           
static NumberRange<Integer> newInstance(Integer min, Integer max, Integer step, Integer selected)
           
 
Methods inherited from class org.solovyev.android.view.NumberRange
getCount, getStartPosition, getStringValueAt, getValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerRange

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

newInstance

@Nonnull
public static NumberRange<Integer> newInstance(@Nonnull
                                                       Integer min,
                                                       @Nonnull
                                                       Integer max,
                                                       @Nonnull
                                                       Integer step,
                                                       @Nonnull
                                                       Integer selected)

getCount

protected int getCount(@Nonnull
                       Integer min,
                       @Nonnull
                       Integer max,
                       @Nonnull
                       Integer step)
Specified by:
getCount in class NumberRange<Integer>

getValueAt

@Nonnull
protected Integer getValueAt(int position,
                                     @Nonnull
                                     Integer min,
                                     @Nonnull
                                     Integer max,
                                     @Nonnull
                                     Integer step)
Specified by:
getValueAt in class NumberRange<Integer>


Copyright © 2014 se.solovyev. All Rights Reserved.