projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved sanity check to make more sense
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
types
/
Bit.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
index
707c5ad
..
4fce8dd
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
@@
-18,6
+18,11
@@
public enum Bit implements StrictLogicType<Bit>
this.symbol = symbol;
}
this.symbol = symbol;
}
+ public boolean isBinary()
+ {
+ return this == ONE || this == ZERO;
+ }
+
@Override
public Bit and(Bit other)
{
@Override
public Bit and(Bit other)
{