@Test public void testMultiply() { Frequency frequency = Frequency.ofMHz(1000); long factor = 5; Frequency expected = Frequency.ofGHz(5); assertThat(frequency.multiply(5), is(expected)); }
public Frequency multiply(long value) { return new Frequency(this.frequency * value); }
Frequency implements RichComparable<Frequency> { public Frequency multiply(long value) { return new Frequency(this.frequency * value); } }
Frequency implements RichComparable<Frequency> { public Frequency multiply(long value) { return new Frequency(this.frequency * value); } private  Frequency(long frequency); }
Frequency implements RichComparable<Frequency> { public Frequency multiply(long value) { return new Frequency(this.frequency * value); } private  Frequency(long frequency); long asHz(); static Frequency ofHz(long value); static Frequency ofKHz(long value); static Frequency ofKHz(double value); static Frequency ofMHz(long value); static Frequency ofMHz(double value); static Frequency ofGHz(long value); static Frequency ofGHz(double value); static Frequency ofTHz(long value); static Frequency ofTHz(double value); Frequency add(Frequency value); Frequency subtract(Frequency value); Frequency multiply(long value); Frequency floorDivision(long value); @Override int compareTo(Frequency other); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Frequency implements RichComparable<Frequency> { public Frequency multiply(long value) { return new Frequency(this.frequency * value); } private  Frequency(long frequency); long asHz(); static Frequency ofHz(long value); static Frequency ofKHz(long value); static Frequency ofKHz(double value); static Frequency ofMHz(long value); static Frequency ofMHz(double value); static Frequency ofGHz(long value); static Frequency ofGHz(double value); static Frequency ofTHz(long value); static Frequency ofTHz(double value); Frequency add(Frequency value); Frequency subtract(Frequency value); Frequency multiply(long value); Frequency floorDivision(long value); @Override int compareTo(Frequency other); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }