-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NumericType interf: getNbits() instead of is*bits().
- Loading branch information
1 parent
2b69ffc
commit 1e8bf79
Showing
12 changed files
with
42 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* <br> | ||
* Instances of this class are equal to all other classes that implement the | ||
* {@link NumericType} interface, and for which {@link #isIntegral()} yields | ||
* {@code false} and {@link #is32Bits()} yields {@code true}. An instance of | ||
* {@code false} and {@link #getNbits()} yields {@code 32}. An instance of | ||
* Float32 is assumed to be assignable to any {@link NumericType}, with possible | ||
* loss of information. <br> | ||
* <br> | ||
|
@@ -24,7 +24,7 @@ | |
* <br> | ||
* Equality with other types is determined through | ||
* {@link NumericType#sameNumericTypes(NumericType)}. | ||
* | ||
* | ||
* @author <a href="mailto:[email protected]">Luca Negrini</a> | ||
*/ | ||
public class Float32Type implements NumericType { | ||
|
@@ -43,23 +43,8 @@ protected Float32Type() { | |
} | ||
|
||
@Override | ||
public boolean is8Bits() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean is16Bits() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean is32Bits() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean is64Bits() { | ||
return false; | ||
public int getNbits() { | ||
return 32; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.