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

tool.designpatterns.Pattern Maven / Gradle / Ivy

The newest version!
package tool.designpatterns;

/**
 * An enum that contains all patterns we are able to identify and verify. If a
 * new pattern has been added, then the enum must be expanded manually.
 */
public enum Pattern {
    IMMUTABLE(PatternGroup.IMMUTABLE),

    SINGLETON(PatternGroup.SINGLETON),

    DECORATOR_INTERFACE_COMPONENT(PatternGroup.DECORATOR),
    DECORATOR_CONCRETE_COMPONENT(PatternGroup.DECORATOR),
    DECORATOR_ABSTRACT_DECORATOR(PatternGroup.DECORATOR),
    DECORATOR_CONCRETE_DECORATOR(PatternGroup.DECORATOR),

    ADAPTER_ADAPTER(PatternGroup.ADAPTER),
    ADAPTER_ADAPTEE(PatternGroup.ADAPTER),

    COMPOSITE_COMPONENT(PatternGroup.COMPOSITE),
    COMPOSITE_CONTAINER(PatternGroup.COMPOSITE),
    COMPOSITE_LEAF(PatternGroup.COMPOSITE);

    private PatternGroup group;

    Pattern(PatternGroup group) {
        this.group = group;
    }

    PatternGroup getGroup() {
        return this.group;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy