@Test public void getservice() { assertNotNull(service); DefaultAtlasConversionService service2 = DefaultAtlasConversionService.getInstance(); assertNotNull(service2); assertSame(service, service2); }
public static DefaultAtlasConversionService getInstance() { DefaultAtlasConversionService result = instance; if (result == null) { synchronized (SINGLETON_LOCK) { result = instance; if (result == null) { result = new DefaultAtlasConversionService(); result.init(); instance = result; } } } return result; }
DefaultAtlasConversionService implements AtlasConversionService { public static DefaultAtlasConversionService getInstance() { DefaultAtlasConversionService result = instance; if (result == null) { synchronized (SINGLETON_LOCK) { result = instance; if (result == null) { result = new DefaultAtlasConversionService(); result.init(); instance = result; } } } return result; } }
DefaultAtlasConversionService implements AtlasConversionService { public static DefaultAtlasConversionService getInstance() { DefaultAtlasConversionService result = instance; if (result == null) { synchronized (SINGLETON_LOCK) { result = instance; if (result == null) { result = new DefaultAtlasConversionService(); result.init(); instance = result; } } } return result; } private  DefaultAtlasConversionService(); }
DefaultAtlasConversionService implements AtlasConversionService { public static DefaultAtlasConversionService getInstance() { DefaultAtlasConversionService result = instance; if (result == null) { synchronized (SINGLETON_LOCK) { result = instance; if (result == null) { result = new DefaultAtlasConversionService(); result.init(); instance = result; } } } return result; } 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 { public static DefaultAtlasConversionService getInstance() { DefaultAtlasConversionService result = instance; if (result == null) { synchronized (SINGLETON_LOCK) { result = instance; if (result == null) { result = new DefaultAtlasConversionService(); result.init(); instance = result; } } } return result; } 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);  }