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, wait
find
protected static final Integer NEGATIVE_ONE
public BaseBinaryChop()
public int find(int seeking, int[] in)
find
in interface BinaryChop
public int find(Integer seeking, Integer[] in)
find
in interface BinaryChop
protected static boolean greaterThan(List<Integer> list, int index, Integer obj)
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.