Module ieee754java
Package at.syntaxerror.ieee754.binary
Interface BinaryFactory<T extends Binary<T>>
public interface BinaryFactory<T extends Binary<T>>
This class is used to create new Binary objects
- Author:
- Thomas Kasper
-
Method Summary
Modifier and TypeMethodDescriptioncreate(int signum, BinaryType type) Creates a newBinarycreate(int signum, BigDecimal value) Creates a newBinary.default TCreates a newBinary.default Tcreate(BigDecimal value) Creates a newBinarycreateUnchecked(int signum, BigDecimal value) Deprecated.internal use only
-
Method Details
-
createUnchecked
Deprecated.internal use onlyCreates a newBinary- Parameters:
signum- the signum (either -1, 0, or 1)value- the value- Returns:
- the new Binary
-
create
Creates a newBinary- Parameters:
signum- the signum (either -1, 0, or 1)type- the type- Returns:
- the new Binary
-
create
Creates a newBinary.The primary use of this function is for creating signed zeros. In all other cases,
create(BigDecimal)should be preferred.- Parameters:
signum- the signum (either -1, 0, or 1)value- the value- Returns:
- the new Binary
-
create
Creates a newBinary- Parameters:
value- the value- Returns:
- the new Binary
-
create
Creates a newBinary.- Parameters:
value- the value- Returns:
- the new Binary
-