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

com.testfabrik.webmate.javasdk.testmgmt.ApplicationModelId Maven / Gradle / Ivy

There is a newer version: 0.56
Show newest version
package com.testfabrik.webmate.javasdk.testmgmt;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Type of Test.
 */
public class ApplicationModelId {
    private final String name;

    private ApplicationModelId(final String name) {
        this.name = name;
    }

    /**
     * Create TestType from name.
     */
    @JsonCreator
    public static ApplicationModelId of(final String name) {
        return new ApplicationModelId(name);
    }

    @Override
    @JsonValue
    public String toString() {
        return this.name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ApplicationModelId otherType = (ApplicationModelId) o;

        return name.equals(otherType.name);
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy