Browse Source

Code tidy

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7203 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
f3dc40fbc5
  1. 16
      prism/src/pta/DBMList.java

16
prism/src/pta/DBMList.java

@ -434,6 +434,15 @@ public class DBMList extends NCZone
else return null; else return null;
} }
/**
* Get the number of DBMs in this DBMList.
* @return
*/
public int size()
{
return list.size();
}
/** /**
* Clone this zone * Clone this zone
*/ */
@ -448,12 +457,14 @@ public class DBMList extends NCZone
// Standard Java methods // Standard Java methods
@Override
public int hashCode() public int hashCode()
{ {
// Simple hash code // Simple hash code
return list.size(); return list.size();
} }
@Override
public boolean equals(Object o) public boolean equals(Object o)
{ {
DBMList dbml; DBMList dbml;
@ -477,6 +488,7 @@ public class DBMList extends NCZone
// To string methods // To string methods
@Override
public String toString() public String toString()
{ {
return "" + list; return "" + list;
@ -530,10 +542,6 @@ public class DBMList extends NCZone
} }
} }
public int size() {
return list.size();
}
// Test program for complementing big DBM lists // Test program for complementing big DBM lists
public static void main(String args[]) public static void main(String args[])

Loading…
Cancel
Save