Interface Weight<T>

All Superinterfaces:
Comparable<T>

public interface Weight<T> extends Comparable<T>
A weight is anything that can be compared and added.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T weight)
    Adds this weight to another weight, returning the new weight.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • add

      T add(T weight)
      Adds this weight to another weight, returning the new weight. This weight is not modified.