public class MaterialFactors extends Object
| Constructor and Description |
|---|
MaterialFactors(double mass_in_grams,
double rarity,
double recyclability)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getMass_in_grams() |
double |
getRarity() |
double |
getRecyclability() |
public MaterialFactors(double mass_in_grams,
double rarity,
double recyclability)
throws IllegalArgumentException
mass_in_grams - material mass in grams.rarity - the value of the material rarity factor.recyclability - the value of the material recyclability factor.IllegalArgumentException - if the values provided are out of range.public double getMass_in_grams()
public double getRecyclability()
public double getRarity()
Copyright © 2020. All rights reserved.