mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
added properties to equals, hashCode and toString
This commit is contained in:
@@ -217,7 +217,8 @@ public class Group extends BasicPropertiesAware
|
|||||||
&& Objects.equal(members, other.members)
|
&& Objects.equal(members, other.members)
|
||||||
&& Objects.equal(type, other.type)
|
&& Objects.equal(type, other.type)
|
||||||
&& Objects.equal(creationDate, other.creationDate)
|
&& Objects.equal(creationDate, other.creationDate)
|
||||||
&& Objects.equal(lastModified, lastModified);
|
&& Objects.equal(lastModified, other.lastModified)
|
||||||
|
&& Objects.equal(properties, other.properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -230,7 +231,7 @@ public class Group extends BasicPropertiesAware
|
|||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
return Objects.hashCode(name, description, members, type, creationDate,
|
return Objects.hashCode(name, description, members, type, creationDate,
|
||||||
lastModified);
|
lastModified, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -275,6 +276,7 @@ public class Group extends BasicPropertiesAware
|
|||||||
.add("type", type)
|
.add("type", type)
|
||||||
.add("creationDate", creationDate)
|
.add("creationDate", creationDate)
|
||||||
.add("lastModified", lastModified)
|
.add("lastModified", lastModified)
|
||||||
|
.add("properties", properties)
|
||||||
.toString();
|
.toString();
|
||||||
//J+
|
//J+
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ public class Repository extends BasicPropertiesAware implements ModelObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Repository other = (Repository) obj;
|
final Repository other = (Repository) obj;
|
||||||
|
|
||||||
//J-
|
//J-
|
||||||
return Objects.equal(id, other.id)
|
return Objects.equal(id, other.id)
|
||||||
&& Objects.equal(name, other.name)
|
&& Objects.equal(name, other.name)
|
||||||
@@ -195,7 +195,8 @@ public class Repository extends BasicPropertiesAware implements ModelObject
|
|||||||
&& Objects.equal(type, other.type)
|
&& Objects.equal(type, other.type)
|
||||||
&& Objects.equal(url, other.url)
|
&& Objects.equal(url, other.url)
|
||||||
&& Objects.equal(creationDate, other.creationDate)
|
&& Objects.equal(creationDate, other.creationDate)
|
||||||
&& Objects.equal(lastModified, other.lastModified);
|
&& Objects.equal(lastModified, other.lastModified)
|
||||||
|
&& Objects.equal(properties, other.properties);
|
||||||
//J+
|
//J+
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +210,8 @@ public class Repository extends BasicPropertiesAware implements ModelObject
|
|||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
return Objects.hashCode(id, name, contact, description, publicReadable,
|
return Objects.hashCode(id, name, contact, description, publicReadable,
|
||||||
permissions, type, url, creationDate, lastModified);
|
permissions, type, url, creationDate, lastModified,
|
||||||
|
properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -233,6 +235,7 @@ public class Repository extends BasicPropertiesAware implements ModelObject
|
|||||||
.add("url", url)
|
.add("url", url)
|
||||||
.add("lastModified", lastModified)
|
.add("lastModified", lastModified)
|
||||||
.add("creationDate", creationDate)
|
.add("creationDate", creationDate)
|
||||||
|
.add("properties", properties)
|
||||||
.toString();
|
.toString();
|
||||||
//J+
|
//J+
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ public class User extends BasicPropertiesAware implements Principal, ModelObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param obj
|
* @param obj
|
||||||
@@ -218,11 +218,12 @@ public class User extends BasicPropertiesAware implements Principal, ModelObject
|
|||||||
&& Objects.equal(admin, other.admin)
|
&& Objects.equal(admin, other.admin)
|
||||||
&& Objects.equal(password, other.password)
|
&& Objects.equal(password, other.password)
|
||||||
&& Objects.equal(creationDate, other.creationDate)
|
&& Objects.equal(creationDate, other.creationDate)
|
||||||
&& Objects.equal(lastModified, other.lastModified);
|
&& Objects.equal(lastModified, other.lastModified)
|
||||||
|
&& Objects.equal(properties, other.properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@@ -231,11 +232,11 @@ public class User extends BasicPropertiesAware implements Principal, ModelObject
|
|||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
return Objects.hashCode(name, displayName, mail, type, admin, password,
|
return Objects.hashCode(name, displayName, mail, type, admin, password,
|
||||||
creationDate, lastModified);
|
creationDate, lastModified, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@@ -257,6 +258,7 @@ public class User extends BasicPropertiesAware implements Principal, ModelObject
|
|||||||
.add("type", type)
|
.add("type", type)
|
||||||
.add("creationDate", creationDate)
|
.add("creationDate", creationDate)
|
||||||
.add("lastModified", lastModified)
|
.add("lastModified", lastModified)
|
||||||
|
.add("properties", properties)
|
||||||
.toString();
|
.toString();
|
||||||
//J+
|
//J+
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user