commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [2/4] commons-numbers git commit: NUMBERS-51: "Fraction" implements basic operations.
Date Tue, 26 Dec 2017 01:54:06 GMT
NUMBERS-51: "Fraction" implements basic operations.


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/c098401c
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/c098401c
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/c098401c

Branch: refs/heads/feature__NUMBERS-51__field
Commit: c098401cc0d8e2d8293d98a94efc46c2f374b623
Parents: 518b58a
Author: Gilles Sadowski <gilles@harfang.homelinux.org>
Authored: Tue Dec 26 02:38:55 2017 +0100
Committer: Gilles Sadowski <gilles@harfang.homelinux.org>
Committed: Tue Dec 26 02:38:55 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/numbers/fraction/Fraction.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/c098401c/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
index 673d0d5..5f0ece0 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
@@ -19,15 +19,16 @@ package org.apache.commons.numbers.fraction;
 import java.io.Serializable;
 import java.math.BigInteger;
 import org.apache.commons.numbers.core.ArithmeticUtils;
+import org.apache.commons.numbers.core.NativeOperators;
 
 /**
  * Representation of a rational number.
- *
- * implements Serializable since 2.0
  */
 public class Fraction
     extends Number
-    implements Comparable<Fraction>, Serializable {
+    implements Comparable<Fraction>,
+               Serializable,
+               NativeOperators<Fraction> {
 
     /** A fraction representing "2 / 1". */
     public static final Fraction TWO = new Fraction(2, 1);


Mime
View raw message