: Integer.MAX_VALUE;
int to = higherSerialNumber.compareTo(biggestSerialNumber) > 0 ? pageUris.length - 1
: Integer.MIN_VALUE;
for (int i = 0; i < pageUris.length; i++) {
FedoraURI fedoraUri = new FedoraURI(URI.create(pageUris[i]));
logger.debug(fedoraUri.getSerialNumber());
if (lowerSerialNumber.equals(fedoraUri.getSerialNumber())) {
from = i;
}
if (higherSerialNumber.equals(fedoraUri.getSerialNumber())) {
to = i;
}
}
logger.debug("from: {} to {}", from, to);
return Arrays.copyOfRange(pageUris, from, to + 1);
} else {
logger.debug("Parge Single Index: " + range);
int pageIndex = getPageIndex(range);
String serialNumber = PAGE_INDEX_FORMATTER.format(pageIndex);
for (String pageUri : pageUris) {
FedoraURI fedoraUri = new FedoraURI(URI.create(pageUri));
if (serialNumber.equals(fedoraUri.getSerialNumber())) {
result.add(pageUri);
break;
}
}
}