protected static int getLowestSchemaSameVersion(final Int2ObjectSortedMap<Schema> schemas, final int versionKey) { if (versionKey < schemas.firstIntKey()) { // can't have a data type before anything else return schemas.firstIntKey(); } return schemas.subMap(0, versionKey + 1).lastIntKey(); }
@Override public int lastIntKey() { synchronized (sync) { return sortedMap.lastIntKey(); } } /**
@Override public int lastIntKey() { return sortedMap.lastIntKey(); } /**
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override default Integer lastKey() { return Integer.valueOf(lastIntKey()); } /**