package fr.adrienbrault.idea.symfony2plugin.stubs.dict;

import org.jetbrains.annotations.Nullable;

/**
 * @author Daniel Espendiller <daniel@espendiller.net>
 */
public class FileResource {

    private final String resource;
    private String prefix = null;

    public FileResource(@Nullable String resource) {
        this.resource = resource;
    }

    @Nullable
    public String getResource() {
        return resource;
    }

    public FileResource setPrefix(@Nullable String prefix) {
        this.prefix = prefix;
        return this;
    }

    public String getPrefix() {
        return prefix;
    }
}

@@ -50,16 +50,156 @@
 .dict;%0A%0A
+import fr.adrienbrault.idea.symfony2plugin.dic.container.dict.ContainerBuilderCall;%0Aimport org.apache.commons.lang.builder.HashCodeBuilder;%0A
 import o
@@ -234,16 +234,43 @@
 lable;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * @
@@ -744,24 +744,24 @@
 tPrefix() %7B%0A
-
         retu
@@ -776,11 +776,463 @@
 x;%0A    %7D
+%0A%0A    @Override%0A    public int hashCode() %7B%0A        return new HashCodeBuilder()%0A            .append(this.resource)%0A            .append(this.prefix)%0A            .toHashCode()%0A        ;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        return obj instanceof FileResource &&%0A            Objects.equals(((FileResource) obj).resource, this.resource) &&%0A            Objects.equals(((FileResource) obj).prefix, this.prefix)%0A        ;%0A    %7D
 %0A%7D%0A

fix equals / hashCode violation for file resource index #737