Code example for Set

Methods: add

0
    private final Set<String> primitiveTypes = new HashSet<String>();
 
    public LinkRenderer(Document document, DslDocModel model) {
        this.document = document;
        this.model = model;
        primitiveTypes.add("boolean");
        primitiveTypes.add("byte");
        primitiveTypes.add("short");
        primitiveTypes.add("int");
        primitiveTypes.add("long");
        primitiveTypes.add("char");
        primitiveTypes.add("float");
        primitiveTypes.add("double");
        primitiveTypes.add("void");
    } 
 
    Node link(TypeMetaData type, final GenerationListener listener) {
        final Element linkElement = document.createElement("classname");
 
        type.visitSignature(new TypeMetaData.SignatureVisitor() {
Connect your IDE to all the code out there  Get Codota for Java