test_class.declarator: distributedCache
test_class.modifier: private
test_class.original_string: private DistributedCache distributedCache;
test_class.type: DistributedCache
test_class.var_name: distributedCache
test_class.declarator: hazelcastInstance
test_class.modifier: private
test_class.original_string: private HazelcastInstance hazelcastInstance;
test_class.type: HazelcastInstance
test_class.var_name: hazelcastInstance
test_class.declarator: mapper
test_class.modifier: private
test_class.original_string: private ObjectMapper mapper;
test_class.type: ObjectMapper
test_class.var_name: mapper
test_class.file: real-time/foxtrot/foxtrot-core/src/test/java/com/flipkart/foxtrot/core/querystore/impl/DistributedCacheTest.java
test_class.identifier: DistributedCacheTest
test_case.body: @Test
      public void testHas() throws Exception {
          GroupResponse baseRequest = new GroupResponse();
          baseRequest.setResult(Collections.<String, Object>singletonMap("Hello", "World"));
          distributedCache.put("DUMMY_KEY_HAS", baseRequest);
          boolean response = distributedCache.has("DUMMY_KEY_HAS");
          assertTrue(response);
          response = distributedCache.has("INVALID_KEY");
          assertFalse(response);
          response = distributedCache.has(null);
          assertFalse(response);
      }
test_case.class_method_signature: DistributedCacheTest.testHas()
test_case.full_signature: @Test public void testHas()
test_case.identifier: testHas
test_case.invocations: setResult singletonMap put has assertTrue has assertFalse has assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHas()
focal_class.declarator: NAME_PREFIX="cache-for-"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME_PREFIX="cache-for-";
focal_class.type: String
focal_class.var_name: NAME_PREFIX
focal_class.declarator: logger = LoggerFactory.getLogger(DistributedCache.class.getSimpleName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(DistributedCache.class.getSimpleName());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: distributedMap
focal_class.modifier: private final
focal_class.original_string: private final IMap<String, String> distributedMap;
focal_class.type: IMap<String, String>
focal_class.var_name: distributedMap
focal_class.declarator: mapper
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper mapper;
focal_class.type: ObjectMapper
focal_class.var_name: mapper
focal_class.file: real-time/foxtrot/foxtrot-core/src/main/java/com/flipkart/foxtrot/core/querystore/impl/DistributedCache.java
focal_class.identifier: DistributedCache
focal_class.interfaces: implements Cache
focal_class.class_method_signature: DistributedCache.setupConfig(HazelcastConnection hazelcastConnection)
focal_class.full_signature: public static void setupConfig(HazelcastConnection hazelcastConnection)
focal_class.identifier: setupConfig
focal_class.modifiers: public static
focal_class.parameters: (HazelcastConnection hazelcastConnection)
focal_class.return: void
focal_class.signature: void setupConfig(HazelcastConnection hazelcastConnection)
focal_class.class_method_signature: DistributedCache.DistributedCache(HazelcastConnection hazelcastConnection, String name, ObjectMapper mapper)
focal_class.full_signature: public  DistributedCache(HazelcastConnection hazelcastConnection, String name, ObjectMapper mapper)
focal_class.identifier: DistributedCache
focal_class.modifiers: public
focal_class.parameters: (HazelcastConnection hazelcastConnection, String name, ObjectMapper mapper)
focal_class.signature:  DistributedCache(HazelcastConnection hazelcastConnection, String name, ObjectMapper mapper)
focal_class.class_method_signature: DistributedCache.put(String key, ActionResponse data)
focal_class.full_signature: @Override public ActionResponse put(String key, ActionResponse data)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (String key, ActionResponse data)
focal_class.return: ActionResponse
focal_class.signature: ActionResponse put(String key, ActionResponse data)
focal_class.class_method_signature: DistributedCache.get(String key)
focal_class.full_signature: @Override public ActionResponse get(String key)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: ActionResponse
focal_class.signature: ActionResponse get(String key)
focal_class.class_method_signature: DistributedCache.has(String key)
focal_class.full_signature: @Override public boolean has(String key)
focal_class.identifier: has
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean has(String key)
focal_method.body: @Override
      public boolean has(String key) {
          return null != key && distributedMap.containsKey(key);
      }
focal_method.class_method_signature: DistributedCache.has(String key)
focal_method.full_signature: @Override public boolean has(String key)
focal_method.identifier: has
focal_method.invocations: containsKey
focal_method.modifiers: @Override public
focal_method.parameters: (String key)
focal_method.return: boolean
focal_method.signature: boolean has(String key)