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

com.javajy.api.entity.File Maven / Gradle / Ivy

The newest version!
package com.javajy.api.entity;

public class File {
    private String G = "key" + Math.random();
    private String H = "key" + Math.random();
    private String f;
    private Response response;

    public File() {
    }

    public String getName() {
        return this.G;
    }

    public String getKey() {
        return this.H;
    }

    public String getUrl() {
        return this.f;
    }

    public Response getResponse() {
        return this.response;
    }

    public void setName(String var1) {
        this.G = var1;
    }

    public void setKey(String var1) {
        this.H = var1;
    }

    public void setUrl(String var1) {
        this.f = var1;
    }

    public void setResponse(Response var1) {
        this.response = var1;
    }

    public boolean equals(Object var1) {
        if (var1 == this) {
            return true;
        } else if (!(var1 instanceof File)) {
            return false;
        } else {
            File var2 = (File)var1;
            if (!var2.canEqual(this)) {
                return false;
            } else {
                label59: {
                    String var3 = this.getName();
                    String var4 = var2.getName();
                    if (var3 == null) {
                        if (var4 == null) {
                            break label59;
                        }
                    } else if (var3.equals(var4)) {
                        break label59;
                    }

                    return false;
                }

                String var5 = this.getKey();
                String var6 = var2.getKey();
                if (var5 == null) {
                    if (var6 != null) {
                        return false;
                    }
                } else if (!var5.equals(var6)) {
                    return false;
                }

                String var7 = this.getUrl();
                String var8 = var2.getUrl();
                if (var7 == null) {
                    if (var8 != null) {
                        return false;
                    }
                } else if (!var7.equals(var8)) {
                    return false;
                }

                Response var9 = this.getResponse();
                Response var10 = var2.getResponse();
                if (var9 == null) {
                    if (var10 != null) {
                        return false;
                    }
                } else if (!var9.equals(var10)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object var1) {
        return var1 instanceof File;
    }

    public int hashCode() {
        boolean var1 = true;
        int var2 = 1;
        String var3 = this.getName();
        var2 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getKey();
        var2 = var2 * 59 + (var4 == null ? 43 : var4.hashCode());
        String var5 = this.getUrl();
        var2 = var2 * 59 + (var5 == null ? 43 : var5.hashCode());
        Response var6 = this.getResponse();
        var2 = var2 * 59 + (var6 == null ? 43 : var6.hashCode());
        return var2;
    }

    public String toString() {
        return "File(name=" + this.getName() + ", key=" + this.getKey() + ", url=" + this.getUrl() + ", response=" + this.getResponse() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy