public class Length extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Length.Units |
| Modifier and Type | Field and Description |
|---|---|
double |
magnitude |
Length.Units |
units |
| Constructor and Description |
|---|
Length(Length.Units units,
double magnitude) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getMagnitude() |
Length.Units |
getUnits() |
int |
hashCode() |
String |
toString() |
public final Length.Units units
public final double magnitude
public Length(Length.Units units, double magnitude)
public Length.Units getUnits()
public double getMagnitude()
Copyright © 2016. All rights reserved.