All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graph.Vertex.groovy Maven / Gradle / Ivy

There is a newer version: 0.27.0
Show newest version
package graph

import groovy.transform.EqualsAndHashCode
@EqualsAndHashCode(excludes = ['delegate'])
class Vertex {
    String name
    def delegate = new Object()

    def delegateAs(Class... traits) {
        delegate = delegate.withTraits(traits)
        this
    }

    def propertyMissing(String name) {
        delegate[name]
    }

    def propertyMissing(String name, value) {
        delegate[name] = value
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy