コード例 #1
0
  @Nonnull
  @CheckReturnValue
  public SizeDouble getSubtracted(@Nonnull final IHasDimensionDouble aToSubtract) {
    ValueEnforcer.notNull(aToSubtract, "ToSubtract");

    return new SizeDouble(m_dWidth - aToSubtract.getWidth(), m_dHeight - aToSubtract.getHeight());
  }
コード例 #2
0
  @Nonnull
  @CheckReturnValue
  public SizeDouble getAdded(@Nonnull final IHasDimensionDouble aToAdd) {
    ValueEnforcer.notNull(aToAdd, "ToAdd");

    return new SizeDouble(m_dWidth + aToAdd.getWidth(), m_dHeight + aToAdd.getHeight());
  }
コード例 #3
0
 public SizeDouble(@Nonnull final IHasDimensionDouble aObj) {
   this(aObj.getWidth(), aObj.getHeight());
 }