Code example for Map

Methods: get, size

0
      } 
    } 
 
    public int getNumProcessing(String tier)
    { 
      Map<String, String> segments = currentlyProcessingSegments.get(tier);
      return (segments == null) ? 0 : segments.size();
    } 
 
    public int getLifetime(String tier)
    { 
      Integer lifetime = lifetimes.get(tier);
      if (lifetime == null) {
        lifetime = maxLifetime;
        lifetimes.put(tier, lifetime);
      } 
      return lifetime;
    } 
 
    public void reduceLifetime(String tier)
    {