Top Description Inners Constructors Methods
com.sun.tools.xjc.reader.gbind

public final Class ElementSets

extends Object
Class Inheritance
Imports
java.util.LinkedHashSet

Factory methods for ElementSet.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ElementSets.MultiValueSet

ElementSet that has multiple Elements in it.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ElementSet
union(ElementSet lhs, ElementSet rhs)

Returns an union of two ElementSets.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ElementSetsback to summary
private ElementSets()

Method Detail

unionback to summary
public static ElementSet union(ElementSet lhs, ElementSet rhs)

Returns an union of two ElementSets. This method performs better if lhs is bigger than rhs

com.sun.tools.xjc.reader.gbind back to summary

private final Class ElementSets.MultiValueSet

extends LinkedHashSet<Element>
implements ElementSet
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.reader.gbind.ElementSet, java.lang.Iterable

ElementSet that has multiple Elements in it. This isn't particularly efficient or anything, but it will do for now.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public void
addNext(Element element)

Implements com.sun.tools.xjc.reader.gbind.ElementSet.addNext.

For each element in this set, adds an edge to the given element.

public boolean
contains(ElementSet rhs)

Implements com.sun.tools.xjc.reader.gbind.ElementSet.contains.

Doesn't have to be strict (it's OK for this method to return false when it's actually true) since this is used just for optimization.

Inherited from java.util.LinkedHashSet:
addFirstaddLastgetFirstgetLastnewLinkedHashSetremoveFirstremoveLastreversedspliterator

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.LinkedHashSet.serialVersionUID.

Constructor Detail

MultiValueSetback to summary
public MultiValueSet(ElementSet lhs, ElementSet rhs)

Method Detail

addAllback to summary
private void addAll(ElementSet lhs)
addNextback to summary
public void addNext(Element element)

Implements com.sun.tools.xjc.reader.gbind.ElementSet.addNext.

Doc from com.sun.tools.xjc.reader.gbind.ElementSet.addNext.

For each element in this set, adds an edge to the given element.

Annotations
@Override
containsback to summary
public boolean contains(ElementSet rhs)

Implements com.sun.tools.xjc.reader.gbind.ElementSet.contains.

Doc from com.sun.tools.xjc.reader.gbind.ElementSet.contains.

Doesn't have to be strict (it's OK for this method to return false when it's actually true) since this is used just for optimization. (Erring on the other side is NG)

Annotations
@Override