Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ka2ddo.util
Interface UnitEnumHasShortUnit<T>

All Superinterfaces:
  UnitEnum<T>

All Known Implementing Classes:
  DistanceUnit

    public interface UnitEnumHasShortUnit<T>

extends UnitEnum<T>

This interface specifies a Enum for units that has a smaller version of the unit in the same system of units (standard/imperial vs. metric).

Method Summary
`int` | `getDepth()` Get depth index for this unit instance's hierarchy of different-sized units.
`
`<T extends UnitEnumHasShortUnit> T`
` | `getShortUnit()` Get the shorter unit associated with this unit.

Methods inherited from interface org.ka2ddo.util.UnitEnum
`from, getOffset`

Method Detail

### getShortUnit

    <T extends UnitEnumHasShortUnit> T getShortUnit()

  Get the shorter unit associated with this unit.

  Type Parameters:
    `T` - Enum subclass implementing this interface
  Returns:
    shorter unit in same system of measurement

### getDepth

    int getDepth()

  Get depth index for this unit instance's hierarchy of different-sized units.

  Returns:
    zero-based index of how many times you can get a shorter unit before you reach the smallest unit

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD