Package org.sylfra.idea.plugins.revu.model

Source Code of org.sylfra.idea.plugins.revu.model.FileScope

package org.sylfra.idea.plugins.revu.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
* @author <a href="mailto:syllant@gmail.com">Sylvain FRANCOIS</a>
* @version $Id$
*/
public class FileScope extends AbstractRevuEntity<FileScope>
{
  private String pathPattern;
  private String vcsBeforeRev;
  private String vcsAfterRev;

  public String getPathPattern()
  {
    return pathPattern;
  }

  public void setPathPattern(String pathPattern)
  {
    this.pathPattern = pathPattern;
  }

  public String getVcsBeforeRev()
  {
    return vcsBeforeRev;
  }

  public void setVcsBeforeRev(String vcsBeforeRev)
  {
    this.vcsBeforeRev = vcsBeforeRev;
  }

  public String getVcsAfterRev()
  {
    return vcsAfterRev;
  }

  public void setVcsAfterRev(String vcsAfterRev)
  {
    this.vcsAfterRev = vcsAfterRev;
  }

  public int compareTo(FileScope o)
  {
    return 0;
  }

  @Override
  public boolean equals(Object o)
  {
    if (!(o instanceof FileScope))
    {
      return false;
    }
    if (this == o)
    {
      return true;
    }

    FileScope fs = (FileScope) o;
    return new EqualsBuilder()
      .append(pathPattern, fs.pathPattern)
      .append(vcsAfterRev, fs.vcsAfterRev)
      .append(vcsBeforeRev, fs.vcsBeforeRev)
      .isEquals();
  }

  @Override
  public int hashCode()
  {
    return new HashCodeBuilder()
      .append(pathPattern)
      .append(vcsAfterRev)
      .append(vcsBeforeRev)
      .toHashCode();
  }
}
TOP

Related Classes of org.sylfra.idea.plugins.revu.model.FileScope

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.