class IntegerList implements SortedSet<Integer>, List<Integer> {

	@Pure
	@Override
	public boolean contains(Object obj) {
		if ((this.values != null) && (obj instanceof Number)) {
			final int e = ((Number) obj).intValue();

			for (int idxStart = 0; idxStart < this.values.length - 1; idxStart += 2) {
				if (e < this.values[idxStart]) {
					return false;
				}
				if ((e >= this.values[idxStart]) && (e <= this.values[idxStart + 1])) {
					return true;
				}
			}

		}
		return false;
	}

	public  IntegerList();
	public  IntegerList(int value);
	public  IntegerList(int start, int end);
	public  IntegerList(Collection<? extends Integer> collection);

}