Code example for HashSet

Methods: addAll

0
    } 
 
    private HashSet<String> collectStreamIds(SequenceElement sequenceElement,
                                             HashSet<String> streamIds) {
        if (sequenceElement instanceof SequenceStream) {
            streamIds.addAll(((SequenceStream) sequenceElement).getStreamIds());
        } else if (sequenceElement instanceof BasicStream) {
            streamIds.addAll(((BasicStream) sequenceElement).getStreamIds());
        } else if (sequenceElement instanceof OrElement) {
            collectStreamIds(((OrElement) sequenceElement).getTransformedStream1(), streamIds);
            collectStreamIds(((OrElement) sequenceElement).getTransformedStream2(), streamIds);
        } else if (sequenceElement instanceof RegexElement) {
            collectStreamIds(((RegexElement) sequenceElement).getTransformedStream(), streamIds);
        } else if (sequenceElement instanceof NextElement) {
            collectStreamIds(((NextElement) sequenceElement).getSequenceElement(), streamIds);
            collectStreamIds(((NextElement) sequenceElement).getNextSequenceElement(), streamIds);
        } 
        return streamIds;
    } 
 
    public List<QueryEventSource> constructEventStreamList(SequenceElement sequenceElement,