Package com.linkedin.data

Examples of com.linkedin.data.DataMap.containsKey()


  public <T extends RecordTemplate> boolean isValueOfClass(Class<T> clazz)
  {
    DataMap map = data();
    DataSchema schema = DataTemplateUtil.getSchema(clazz);
    String key = schema.getUnionMemberKey();
    return map.size() == 1 && map.containsKey(key);
  }

  public <T extends RecordTemplate> T getValue(Class<T> clazz) throws TemplateOutputCastException
  {
    T result = null;
View Full Code Here


      // fields
      TestDataTemplateUtil.assertPresentInFields(recordClass, fieldName);

      // has
      if (dataMap.containsKey(fieldName))
      {
        assertTrue((Boolean) hasMethod.invoke(record));
        prevValue = getMethod.invoke(record);
      }
      else
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.