org.tools4j.groovytables.ConstructionMethodPrecursor.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy-tables Show documentation
Show all versions of groovy-tables Show documentation
A groovy API which allows you to create lists of objects using a table like grammar.
package org.tools4j.groovytables
/**
* User: ben
* Date: 16/02/2016
* Time: 5:23 PM
*/
trait ConstructionMethodPrecursor {
abstract TypeCoercionResult executeConstructionMethod();
abstract Suitability getSuitability()
boolean isMoreSuitableThan(final ConstructionMethodPrecursor other) {
return suitability.isMoreSuitableThan(other.suitability)
}
}