@Test public void testList() { DataType listType = DataType.list(DataType.cint(), false); AbstractType<?> convertedType = CassandraTypeConverter.convert(listType); ListType<?> expectedType = ListType.getInstance(Int32Type.instance, true); Assert.assertEquals(expectedType, convertedType); listType = DataType.list(DataType.cint(), true); convertedType = CassandraTypeConverter.convert(listType); expectedType = ListType.getInstance(Int32Type.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);  }