List of usage examples for org.apache.hadoop.io ByteWritable equals
@Override public boolean equals(Object o)
o
is a ByteWritable with the same value. From source file:com.axiomine.largecollections.turboutil.ByteWritableList.java
License:Apache License
@Override public int indexOf(Object o) { int index = -1; int myIndex = -1; Iterator<ByteWritable> iter = this.iterator(); while (iter.hasNext()) { index++;/*from w w w .j a v a 2 s . c o m*/ ByteWritable e = iter.next(); if (e.equals(o)) { myIndex = index; break; } } return myIndex; }
From source file:com.axiomine.largecollections.turboutil.ByteWritableList.java
License:Apache License
@Override public int lastIndexOf(Object o) { int index = -1; int myIndex = -1; Iterator<ByteWritable> iter = this.iterator(); while (iter.hasNext()) { index++;//from www .j av a2 s . c o m ByteWritable e = iter.next(); if (e.equals(o)) { myIndex = index; } } return myIndex; }