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

com.greenpepper.maven.plugin.spy.Spy Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.maven.plugin.spy;

import com.greenpepper.spy.SpyDescription;
import com.greenpepper.util.NameUtils;

public abstract class Spy implements SpyDescription, Comparable {

    private String rawName;

    public Spy(String rawName) {
        this.rawName = rawName;
    }

    @Override
    public String getName() {
        return NameUtils.toJavaIdentifierForm(this.rawName);
    }

    @Override
    public String getRawName() {
        return this.rawName;
    }

    public int hashCode() {
        return this.getName().hashCode();
    }

    @Override
    public int compareTo(T other) {
        return this.getName().compareToIgnoreCase(other.getName());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy