com.netgrif.application.engine.petrinet.domain.dataset.BooleanField.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain.dataset
import org.springframework.data.mongodb.core.mapping.Document
@Document
class BooleanField extends Field {
BooleanField() {
super()
defaultValue = false
}
@Override
FieldType getType() {
return FieldType.BOOLEAN
}
Boolean or(final BooleanField field) {
return this.value || field.value
}
Boolean and(final BooleanField field) {
return this.value && field.value
}
@Override
Field clone() {
BooleanField clone = new BooleanField()
super.clone(clone)
return clone
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy