Revision: 7101
http://bigdata.svn.sourceforge.net/bigdata/?rev=7101&view=rev
Author: mrpersonick
Date: 2013-05-03 18:00:16 +0000 (Fri, 03 May 2013)
Log Message:
-----------
added an indexOf method
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_2_0/bigdata/src/java/com/bigdata/bop/ModifiableBOpBase.java
Modified: branches/BIGDATA_RELEASE_1_2_0/bigdata/src/java/com/bigdata/bop/ModifiableBOpBase.java
===================================================================
--- branches/BIGDATA_RELEASE_1_2_0/bigdata/src/java/com/bigdata/bop/ModifiableBOpBase.java 2013-05-03 16:35:41 UTC (rev 7100)
+++ branches/BIGDATA_RELEASE_1_2_0/bigdata/src/java/com/bigdata/bop/ModifiableBOpBase.java 2013-05-03 18:00:16 UTC (rev 7101)
@@ -164,6 +164,16 @@
return args.get(index);
}
+
+ /**
+ * Return the index of the bop in the args. Returns -1 if bop is not
+ * present in the args.
+ */
+ public int indexOf(final BOp bop) {
+
+ return args.indexOf(bop);
+
+ }
/**
* Invoked automatically any time a mutation operation occurs. The default
@@ -254,7 +264,7 @@
* Add a new argument (core mutation method) at the specified index.
*
* @param index
- * The index of the child expression to be replaced.
+ * The index at which the child expression is to be inserted.
* @param newArg
* The argument.
*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|