/** {@inheritDoc} */ @Override public int elements() { return ints.size(); }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** {@inheritDoc} */ @Override public boolean hasNext() { return idx < ints.size(); }
/** {@inheritDoc} */ @Override public int elements() { return ints.size(); }
/** {@inheritDoc} */ @Override public boolean hasNext() { return idx < ints.size(); }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }
/** * Gets the size of a sparse table for the given cases, in 16-bit code * units. * * @param cases {@code non-null;} sorted list of cases * @return {@code > 0;} the sparse table size */ private static long sparseCodeSize(IntList cases) { int sz = cases.size(); return (sz * 4L) + 2; }