@SuppressWarnings("unchecked") protected Set<Object> newSet(CollectionNode<?> node) { try { return (Set<Object>) newInstance(Set.class, node); } catch (InstantiationException e) { return createDefaultSet(node.getValue().size()); } }
public CollectionNode(Tag tag, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle) { super(tag, startMark, endMark); setFlowStyle(flowStyle); }
boolean implicitM = node.getTag().equals(implicitTag); this.emitter.emit(new MappingStartEvent(tAlias, node.getTag().getValue(), implicitM, null, null, ((CollectionNode) node).getFlowStyle())); MappingNode mnode = (MappingNode) node; List<NodeTuple> map = mnode.getValue();
boolean implicitM = node.getTag().equals(implicitTag); this.emitter.emit(new MappingStartEvent(tAlias, node.getTag().getValue(), implicitM, null, null, ((CollectionNode) node).getFlowStyle())); MappingNode mnode = (MappingNode) node; List<NodeTuple> map = mnode.getValue();
boolean implicitM = node.getTag().equals(implicitTag); this.emitter.emit(new MappingStartEvent(tAlias, node.getTag().getValue(), implicitM, null, null, ((CollectionNode) node).getFlowStyle())); MappingNode mnode = (MappingNode) node; List<NodeTuple> map = mnode.getValue();
@SuppressWarnings("unchecked") protected Set<Object> newSet(CollectionNode<?> node) { try { return (Set<Object>) newInstance(Set.class, node); } catch (InstantiationException e) { return createDefaultSet(node.getValue().size()); } }
public CollectionNode(Tag tag, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle) { super(tag, startMark, endMark); setFlowStyle(flowStyle); }
boolean implicitM = node.getTag().equals(implicitTag); this.emitter.emit(new MappingStartEvent(tAlias, node.getTag().getValue(), implicitM, null, null, ((CollectionNode) node).getFlowStyle())); MappingNode mnode = (MappingNode) node; List<NodeTuple> map = mnode.getValue();