Exemple #1
0
  public int getLastVisitedLevel(int resultStoreId) {
    if (resultStoreId == DEFAULT_RESULT_STORE_ID) return lastVisitedLevel;

    if (lastVisitedFilteredLevel == null) {
      lastVisitedFilteredLevel = new IntegerMap();
      return -1;
    }
    return lastVisitedFilteredLevel.get(resultStoreId);
  }
Exemple #2
0
  public void setLastVisitedLevel(int level, int resultStoreId) {
    if (resultStoreId == DEFAULT_RESULT_STORE_ID) {
      lastVisitedLevel = level;
    } else {
      if (lastVisitedFilteredLevel == null) {
        lastVisitedFilteredLevel = new IntegerMap();
      }

      lastVisitedFilteredLevel.put(resultStoreId, level);
    }
  }