@Override public void serialize(Collection<E> array, ObjectWriter writer, Context ctx) throws Exception { TreeSet<E> treeSet = (TreeSet<E>) array; if (treeSet.comparator() != null) { throw new UnsupportedOperationException("Serialization and deserialization of TreeSet with Comparator is not supported. " + "You need to implement a custom Converter to handle it."); } super.serialize(array, writer, ctx); }
@Override public void serialize(Collection<E> array, ObjectWriter writer, Context ctx) throws Exception { PriorityQueue<E> queue = (PriorityQueue<E>) array; if (queue.comparator() != null) { throw new UnsupportedOperationException("Serialization and deserialization of PriorityQueue with Comparator is not supported. " + "You need to implement a custom Converter to handle it."); } super.serialize(array, writer, ctx); }
@Override public void serialize(Collection<E> array, ObjectWriter writer, Context ctx) throws Exception { TreeSet<E> treeSet = (TreeSet<E>) array; if (treeSet.comparator() != null) { throw new UnsupportedOperationException("Serialization and deserialization of TreeSet with Comparator is not supported. " + "You need to implement a custom Converter to handle it."); } super.serialize(array, writer, ctx); }
@Override public void serialize(Collection object, ObjectWriter writer, Context ctx) throws Exception { defaultConverter.serialize(object, writer, ctx); }
@Override public void serialize(Collection object, ObjectWriter writer, Context ctx) throws Exception { defaultConverter.serialize(object, writer, ctx); }
@Override public void serialize(Collection<E> array, ObjectWriter writer, Context ctx) throws Exception { PriorityQueue<E> queue = (PriorityQueue<E>) array; if (queue.comparator() != null) { throw new UnsupportedOperationException("Serialization and deserialization of PriorityQueue with Comparator is not supported. " + "You need to implement a custom Converter to handle it."); } super.serialize(array, writer, ctx); }