Skip to content

Commit 966760b

Browse files
committed
Removed redundant methods declared by parant and improved JavaDoc
1 parent 48ac9c5 commit 966760b

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

src/main/java/javax/money/MonetaryAmount.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,11 @@
8888
*
8989
* @author Anatole Tresch
9090
* @author Werner Keil
91-
* @version 0.8.1
91+
* @version 0.8.2
9292
* @see #with(MonetaryOperator)
9393
*/
9494
public interface MonetaryAmount extends CurrencySupplier, NumberSupplier, Comparable<MonetaryAmount> {
9595

96-
/**
97-
* Returns the amount’s currency, modeled as {@link CurrencyUnit}. Implementations may
98-
* co-variantly change the return type to a more specific implementation of {@link CurrencyUnit}
99-
* if desired.
100-
*
101-
* @return the currency, never {@code null}
102-
*/
103-
CurrencyUnit getCurrency();
104-
10596
/**
10697
* Returns the {@link MonetaryContext} of this {@code MonetaryAmount}. The
10798
* {@link MonetaryContext} provides additional information about the numeric representation and
@@ -113,16 +104,6 @@ public interface MonetaryAmount extends CurrencySupplier, NumberSupplier, Compar
113104
*/
114105
MonetaryContext getMonetaryContext();
115106

116-
/**
117-
* Simple accessor for the numeric part of a {@link MonetaryAmount}. The representation type
118-
* returned should be the best matching according to the internal representation. In all cases
119-
* never any truncation should occur, so this method must be exact regarding the numeric value
120-
* externalized.
121-
*
122-
* @return the numeric value of this {@link MonetaryAmount}, never {@code null}.
123-
*/
124-
NumberValue getNumber();
125-
126107
/**
127108
* Queries this monetary amount for a value.
128109
* <p>

src/main/java/javax/money/RoundingContext.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import java.io.Serializable;
1212

1313
/**
14-
* This class models the spec/configuration for a rounding, modelled as {@link javax.money.MonetaryRounding} in a
14+
* This class models the spec/configuration for a rounding, modeled as {@link javax.money.MonetaryRounding} in a
1515
* platform independent way. Each RoundingContext instance hereby has a <code>roundingId</code>, which links
1616
* to the {@link javax.money.spi.RoundingProviderSpi} that must create the according rounding instance. The
1717
* <i>default</i> </i><code>roundingId</code> is <code>default</code>.<br/>
@@ -25,9 +25,15 @@
2525
* This class is immutable, serializable, thread-safe.
2626
*
2727
* @author Anatole Tresch
28+
* @author Werner Keil
2829
*/
2930
public final class RoundingContext extends AbstractContext implements Serializable{
30-
/** Attribute key used for the rounding name. */
31+
/**
32+
*
33+
*/
34+
private static final long serialVersionUID = -1879443887564347935L;
35+
36+
/** Attribute key used for the rounding name. */
3137
public static final String KEY_ROUNDING_NAME = "roundingName";
3238

3339
/**

src/main/java/javax/money/RoundingQuery.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
*/
2727
public final class RoundingQuery extends AbstractQuery{
2828

29-
/** Attribute key used for the rounding name attribute. */
29+
/**
30+
*
31+
*/
32+
private static final long serialVersionUID = 1500985029184494081L;
33+
34+
/** Attribute key used for the rounding name attribute. */
3035
public static final String KEY_QUERY_ROUNDING_NAME = "Query.roundingName";
3136

3237
/** Attribute key used for the scale attribute. */
@@ -65,7 +70,7 @@ public Integer getScale(){
6570
}
6671

6772
/**
68-
* Sets the target CurrencyUnit. Typically this determines all other properties,
73+
* Returns the target CurrencyUnit. Typically this determines all other properties,
6974
* such as scale and the concrete rounding algorithm. With
7075
* rounding names, depending on the implementation, additional sub-selections are possible. Similarly
7176
* additional attributes can be used to select special rounding instances, e.g. for cash rounding.

0 commit comments

Comments
 (0)