1 8 package org.apache.avalon.excalibur.lang; 9 10 import java.util.HashMap ; 11 import java.util.Map ; 12 13 20 final class Layer 21 { 22 private Object m_key; 23 private Map m_map; 24 private boolean m_isDivider; 25 26 public Layer( final Object key, final Map map, final boolean isDivider ) 27 { 28 m_key = key; 29 m_map = map; 30 m_isDivider = isDivider; 31 } 32 33 protected boolean matchesKey( final Object other ) 34 { 35 return m_key.equals( other ); 36 } 37 38 protected boolean isDivider() 39 { 40 return m_isDivider; 41 } 42 43 protected boolean containsKey( final String key ) 44 { 45 return m_map.containsKey( key ); 46 } 47 48 protected Object get( final String key ) 49 { 50 return m_map.get( key ); 51 } 52 } 53 54 | Popular Tags |