public abstract class BaseBinaryChop extends Object implements BinaryChop
| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
NEGATIVE_ONE |
| Constructor and Description |
|---|
BaseBinaryChop() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
compare(List<Integer> list,
int index,
Integer obj) |
protected static boolean |
equals(List<Integer> list,
int index,
Integer obj) |
int |
find(Integer seeking,
Integer[] in) |
int |
find(int seeking,
int[] in) |
protected static boolean |
greaterThan(List<Integer> list,
int index,
Integer obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindprotected static final Integer NEGATIVE_ONE
public BaseBinaryChop()
public int find(int seeking, int[] in)
find in interface BinaryChoppublic int find(Integer seeking, Integer[] in)
find in interface BinaryChopprotected static boolean greaterThan(List<Integer> list, int index, Integer obj)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.