@Test public void testIsBoxedPrimitive() { assertTrue(service.isBoxedPrimitive(Boolean.class)); assertTrue(service.isBoxedPrimitive(Byte.class)); assertTrue(service.isBoxedPrimitive(Character.class)); assertTrue(service.isBoxedPrimitive(Double.class)); assertTrue(service.isBoxedPrimitive(Float.class)); assertTrue(service.isBoxedPrimitive(Integer.class)); assertTrue(service.isBoxedPrimitive(Long.class)); assertTrue(service.isBoxedPrimitive(Short.class)); assertTrue(service.isBoxedPrimitive(String.class)); assertFalse(service.isBoxedPrimitive(boolean.class)); assertFalse(service.isBoxedPrimitive(byte.class)); assertFalse(service.isBoxedPrimitive(char.class)); assertFalse(service.isBoxedPrimitive(double.class)); assertFalse(service.isBoxedPrimitive(float.class)); assertFalse(service.isBoxedPrimitive(int.class)); assertFalse(service.isBoxedPrimitive(long.class)); assertFalse(service.isBoxedPrimitive(short.class)); assertFalse(service.isBoxedPrimitive(AtlasMapping.class)); assertFalse(service.isBoxedPrimitive(List.class)); assertFalse(service.isBoxedPrimitive((Class<?>) null)); }
@Override public Boolean isBoxedPrimitive(Class<?> clazz) { if (clazz == null) { return false; } return BOXED_PRIMITIVE_CLASSNAMES.contains(clazz.getCanonicalName()); }
DefaultAtlasConversionService implements AtlasConversionService { @Override public Boolean isBoxedPrimitive(Class<?> clazz) { if (clazz == null) { return false; } return BOXED_PRIMITIVE_CLASSNAMES.contains(clazz.getCanonicalName()); } }
DefaultAtlasConversionService implements AtlasConversionService { @Override public Boolean isBoxedPrimitive(Class<?> clazz) { if (clazz == null) { return false; } return BOXED_PRIMITIVE_CLASSNAMES.contains(clazz.getCanonicalName()); } private  DefaultAtlasConversionService(); }
DefaultAtlasConversionService implements AtlasConversionService { @Override public Boolean isBoxedPrimitive(Class<?> clazz) { if (clazz == null) { return false; } return BOXED_PRIMITIVE_CLASSNAMES.contains(clazz.getCanonicalName()); } private  DefaultAtlasConversionService(); static DefaultAtlasConversionService getInstance(); static Set<String> listPrimitiveClassNames(); @Override Optional<AtlasConverter<?>> findMatchingConverter(FieldType source, FieldType target); @Override Optional<AtlasConverter<?>> findMatchingConverter(String sourceClassName, String targetClassName); @Override Object copyPrimitive(Object sourceValue); @Override Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType); @Override Object convertType(Object sourceValue, String sourceFormat, FieldType targetType, String targetFormat); @Override Object convertType(Object sourceValue, String sourceFormat, Class<?> targetType, String targetFormat); @Override boolean isConvertionAvailableFor(Object sourceValue, Class<?> targetType); @Override Boolean isPrimitive(String className); @Override Boolean isPrimitive(Class<?> clazz); @Override Boolean isPrimitive(FieldType fieldType); @Override Boolean isBoxedPrimitive(Class<?> clazz); @Override Class<?> boxOrUnboxPrimitive(String clazzName); @Override Class<?> boxOrUnboxPrimitive(Class<?> clazz); @Override FieldType fieldTypeFromClass(Class<?> clazz); @Override FieldType fieldTypeFromClass(String className); @Override Class<?> classFromFieldType(FieldType fieldType); @Override Boolean isAssignableFieldType(FieldType source, FieldType target); }
DefaultAtlasConversionService implements AtlasConversionService { @Override public Boolean isBoxedPrimitive(Class<?> clazz) { if (clazz == null) { return false; } return BOXED_PRIMITIVE_CLASSNAMES.contains(clazz.getCanonicalName()); } private  DefaultAtlasConversionService(); static DefaultAtlasConversionService getInstance(); static Set<String> listPrimitiveClassNames(); @Override Optional<AtlasConverter<?>> findMatchingConverter(FieldType source, FieldType target); @Override Optional<AtlasConverter<?>> findMatchingConverter(String sourceClassName, String targetClassName); @Override Object copyPrimitive(Object sourceValue); @Override Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType); @Override Object convertType(Object sourceValue, String sourceFormat, FieldType targetType, String targetFormat); @Override Object convertType(Object sourceValue, String sourceFormat, Class<?> targetType, String targetFormat); @Override boolean isConvertionAvailableFor(Object sourceValue, Class<?> targetType); @Override Boolean isPrimitive(String className); @Override Boolean isPrimitive(Class<?> clazz); @Override Boolean isPrimitive(FieldType fieldType); @Override Boolean isBoxedPrimitive(Class<?> clazz); @Override Class<?> boxOrUnboxPrimitive(String clazzName); @Override Class<?> boxOrUnboxPrimitive(Class<?> clazz); @Override FieldType fieldTypeFromClass(Class<?> clazz); @Override FieldType fieldTypeFromClass(String className); @Override Class<?> classFromFieldType(FieldType fieldType); @Override Boolean isAssignableFieldType(FieldType source, FieldType target);  }