@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { return ImmutableSortedSet.copyOf((List) super.unmarshal(reader, context)); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { return ImmutableSet.copyOf((List) super.unmarshal(reader, context)); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if(s!=null && s.equals("custom")) { return sc.unmarshal(reader,context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Class requiredType = context.getRequiredType(); if (requiredType != null) { String typeName = requiredType.getName(); if (UNMODIFIABLE_LIST.equals(typeName)) { List list = new ArrayList<>(); populateCollection(reader, context, list); return Collections.unmodifiableList(list); } else if (UNMODIFIABLE_SET.equals(typeName)) { Set set = new HashSet<>(); populateCollection(reader, context, set); return Collections.unmodifiableSet(set); } else if (ARRAY_LIST.equals(typeName)) { List list = new ArrayList<>(); populateCollection(reader, context, list); return Arrays.asList(list.toArray()); } } return super.unmarshal(reader, context); } }
return ImmutableList.copyOf((List)super.unmarshal(reader, context));
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { return ImmutableSet.copyOf((List) super.unmarshal(reader, context)); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { return ImmutableSortedSet.copyOf((List) super.unmarshal(reader, context)); }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if(s!=null && s.equals("custom")) { return sc.unmarshal(reader,context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if(s!=null && s.equals("custom")) { return sc.unmarshal(reader,context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if(s!=null && s.equals("custom")) { return sc.unmarshal(reader,context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if (s != null && s.equals("custom")) { return sc.unmarshal(reader, context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // CopyOnWriteArrayList used to serialize as custom serialization, // so read it in a compatible fashion. String s = reader.getAttribute("serialization"); if(s!=null && s.equals("custom")) { return sc.unmarshal(reader,context); } else { return super.unmarshal(reader, context); } }
@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Class requiredType = context.getRequiredType(); if (requiredType != null) { String typeName = requiredType.getName(); if (UNMODIFIABLE_LIST.equals(typeName)) { List list = new ArrayList<>(); populateCollection(reader, context, list); return Collections.unmodifiableList(list); } else if (UNMODIFIABLE_SET.equals(typeName)) { Set set = new HashSet<>(); populateCollection(reader, context, set); return Collections.unmodifiableSet(set); } else if (ARRAY_LIST.equals(typeName)) { List list = new ArrayList<>(); populateCollection(reader, context, list); return Arrays.asList(list.toArray()); } } return super.unmarshal(reader, context); } }
return ImmutableList.copyOf((List)super.unmarshal(reader, context));