Provides the values for all of the unique identifiers managed by the cache.
@param item the item whose key values are being sought
@return a mapping of key names to item values
545159
public HashMap<String,Object> getKeys(T item) {
        HashMap<String,Object> keys = new HashMap<String,Object>();

        for( String key: caches.keySet() ) {
            keys.put(key, getValue(key, item));
        }
        return keys;
    }
1218285
public IndexedSet<T> transactionsOf(I item) {
		IndexedSet<T> res = allTransactions.empty();
		res.indices().addAll(matrix.getCol(itemToIndex(item)));
		return res;
	}
1322586
public synchronized void addItem(T item) {
        synchronized (items) {
            items.add(item);
        }
//        clusterMarker.setMarkerBitmap();
        if (center == null) {
            center = item.getLatLong();
        } else {
            // computing the centroid
            double lat = 0, lon = 0;
            int n = 0;
            synchronized (items) {
                for (T object : items) {
                    if (object == null) {
                        throw new NullPointerException("object == null");
                    }
                    if (object.getLatLong() == null) {
                        throw new NullPointerException("object.getLatLong() == null");
                    }
                    lat += object.getLatLong().latitude;
                    lon += object.getLatLong().longitude;
                    n++;
                }
            }
            center = new LatLong(lat / n, lon / n);
        }
    }
985592
private function _getSiteIdsFromTree( MShop_Locale_Item_Site_Interface $item )
	{
		$list = array( $item->getId() );

		foreach( $item->getChildren() as $child ) {
			$list = array_merge( $list, $this->_getSiteIdsFromTree( $child ) );
		}

		return $list;
	}
1128050
public List<ItemState> getItemStates(String itemIdentifier)
   {
      List<ItemState> states = new ArrayList<ItemState>();
      List<ItemState> currentStates = getAllStates();
      for (int i = 0, length = currentStates.size(); i < length; i++)
      {
         ItemState state = currentStates.get(i);
         if (state.getData().getIdentifier().equals(itemIdentifier))
         {
            states.add(state);
         }
      }
      return states;
   }
892250
public int add(T item) {
		
		Integer count = map.get(item);
		
		if(count == null) {
			map.put(item, 1);
			return 1;
		} else {
			map.put(item, count + 1);
			return count + 1;
		}
	}
459379
public static boolean isRegistered(@Nonnull Item item) {
        ItemDeletion instance = instance();
        if (instance == null) {
            return false;
        }
        instance.lock.readLock().lock();
        try {
            return instance.registrations.contains(item);
        } finally {
            instance.lock.readLock().unlock();
        }
    }
1292101
public List<FieldValuesView> getItemValues(int itemId) {
		return getResourceFactory().getApiResource(
				"/item/" + itemId + "/value/").get(
				new GenericType<List<FieldValuesView>>() {
				});
	}
569402
public static IDrawerItem getDrawerItem(List<IDrawerItem> drawerItems, long identifier) {
        if (identifier != -1) {
            for (IDrawerItem drawerItem : drawerItems) {
                if (drawerItem.getIdentifier() == identifier) {
                    return drawerItem;
                }
            }
        }
        return null;
    }
501880
private static String alias(SqlNode item) {
		assert item instanceof SqlCall;
		assert item.getKind() == SqlKind.AS;
		final SqlIdentifier identifier = ((SqlCall) item).operand(1);
		return identifier.getSimple();
	}
1138308
def _get_item_cache(self, item):
        """"""
        cache = self._item_cache
        res = cache.get(item)
        if res is None:
            values = self._data.get(item)
            res = self._box_item_values(item, values)
            cache[item] = res
            res._set_as_cached(item, self)

            # for a chain
            res._is_copy = self._is_copy
        return res
940367
def _drop_id_prefixes(self, item):
        
        if isinstance(item, list):
            return [self._drop_id_prefixes(i) for i in item]
        if isinstance(item, dict):
            return {
                'id' if k.endswith('id') else k: self._drop_id_prefixes(v)
                for k, v in item.items()
            }
        return item
697847
public final UserManagedCacheBuilder<K, V, T> identifier(String identifier) {
    UserManagedCacheBuilder<K, V, T> otherBuilder = new UserManagedCacheBuilder<>(this);
    otherBuilder.id = identifier;
    return otherBuilder;
  }
269137
def _fill_get_item_cache(self, catalog, key):
        
        lang = self._get_lang()
        keylist = self.get_all(catalog)
        self.ITEM_CACHE[lang][catalog] = dict([(i['value'],  i['name']) for i in keylist])
        return self.ITEM_CACHE[lang][catalog].get(key)
1214271
@Override
    public List<Identifiable> checkIds(List<Identifiable> items) {
        for (int i = 0, size = items.size(); i < size; i++) {
            checkId(items.get(i));
        }
        return items;
    }
1258114
public List<K> getKeysSortedByValue( final Comparator<V> comparator ) {
        synchronized ( _map ) {
            @SuppressWarnings( "unchecked" )
            final
            Entry<K, ManagedItem<V>>[] a = _map.entrySet().toArray( new Map.Entry[_map.size()] );
            final Comparator<Entry<K, ManagedItem<V>>> c = new Comparator<Entry<K, ManagedItem<V>>>() {

                @Override
                public int compare( final Entry<K, ManagedItem<V>> o1, final Entry<K, ManagedItem<V>> o2 ) {
                    return comparator.compare( o1.getValue()._value, o2.getValue()._value );
                }

            };
            Arrays.sort(a, c);
            return new LRUCache.ArrayList<K, V>( a );
        }
    }
91431
private <T> ArrayList<T> list(T item)
	{
		return new ArrayList<T>(Collections.singletonList(item));
	}