@Test public void testSet() { DataType setType = DataType.set(DataType.cfloat(), false); AbstractType<?> convertedType = CassandraTypeConverter.convert(setType); SetType<?> expectedType = SetType.getInstance(FloatType.instance, true); Assert.assertEquals(expectedType, convertedType); setType = DataType.set(DataType.cfloat(), true); convertedType = CassandraTypeConverter.convert(setType); expectedType = SetType.getInstance(FloatType.instance, false); Assert.assertEquals(expectedType, convertedType); Assert.assertTrue("Expected convertedType to be frozen", convertedType.isFrozenCollection()); }
public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); static AbstractType<?> convert(DataType type); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); static AbstractType<?> convert(DataType type);  }