From: <tho...@us...> - 2010-10-20 18:25:32
|
Revision: 3828 http://bigdata.svn.sourceforge.net/bigdata/?rev=3828&view=rev Author: thompsonbry Date: 2010-10-20 18:25:26 +0000 (Wed, 20 Oct 2010) Log Message: ----------- Added toString() and code edit on equals() Modified Paths: -------------- branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java Modified: branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java =================================================================== --- branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java 2010-10-20 18:25:09 UTC (rev 3827) +++ branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java 2010-10-20 18:25:26 UTC (rev 3828) @@ -41,12 +41,12 @@ public final int shardId; public String toString() { - + return super.toString() + "{bopId=" + bopId + ",shardId=" + shardId + "}"; - + } - + public BSBundle(final int bopId, final int shardId) { this.bopId = bopId; @@ -65,16 +65,17 @@ } public boolean equals(final Object o) { - + if (this == o) return true; - + if (!(o instanceof BSBundle)) return false; - - return bopId == ((BSBundle) o).bopId - && shardId == ((BSBundle) o).shardId; - + + final BSBundle t = (BSBundle) o; + + return bopId == t.bopId && shardId == t.shardId; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |