X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fusermgt%2FInMemoryGroupSet.java;h=b9d133abcd397287b3ebf400d6ce48e252eb2625;hb=81fe8784a2182e25f92a7591ec5b0fba00afb828;hp=2d2cb85fb9c1f7666c3b9bd9b55ac3cc673cd99a;hpb=42515fd88bee97ebb3a3180fdcb320faf5fa1d91;p=utils diff --git a/security/src/main/java/org/wamblee/usermgt/InMemoryGroupSet.java b/security/src/main/java/org/wamblee/usermgt/InMemoryGroupSet.java index 2d2cb85f..b9d133ab 100644 --- a/security/src/main/java/org/wamblee/usermgt/InMemoryGroupSet.java +++ b/security/src/main/java/org/wamblee/usermgt/InMemoryGroupSet.java @@ -29,28 +29,28 @@ public class InMemoryGroupSet implements GroupSet { /** * Groups. */ - private Set _groups; + private Set groups; /** * Constructs an empty group set. */ public InMemoryGroupSet() { - _groups = new TreeSet(); + groups = new TreeSet(); } /* (non-Javadoc) * @see org.wamblee.usermgt.GroupSet#groupModified(org.wamblee.usermgt.Group) */ public void groupModified(Group aGroup) { - _groups.remove(aGroup); - _groups.add(aGroup); + groups.remove(aGroup); + groups.add(aGroup); } /* (non-Javadoc) * @see org.wamblee.usermgt.GroupSet#find(java.lang.String) */ public Group find(String aName) { - for (Group group: _groups) { + for (Group group: groups) { if ( group.getName().equals(aName)) { return new Group(group); } @@ -62,21 +62,21 @@ public class InMemoryGroupSet implements GroupSet { * @see org.wamblee.usermgt.GroupSet#contains(org.wamblee.usermgt.Group) */ public boolean contains(Group aGroup) { - return _groups.contains(aGroup); + return groups.contains(aGroup); } /* (non-Javadoc) * @see org.wamblee.usermgt.GroupSet#add(org.wamblee.usermgt.Group) */ public boolean add(Group aGroup) { - return _groups.add(aGroup); + return groups.add(aGroup); } /* (non-Javadoc) * @see org.wamblee.usermgt.GroupSet#remove(org.wamblee.usermgt.Group) */ public boolean remove(Group aGroup) { - return _groups.remove(aGroup); + return groups.remove(aGroup); } /* (non-Javadoc) @@ -84,7 +84,7 @@ public class InMemoryGroupSet implements GroupSet { */ public Set list() { Set list = new TreeSet(); - for (Group group: _groups) { + for (Group group: groups) { list.add(new Group(group)); } return list; @@ -94,7 +94,7 @@ public class InMemoryGroupSet implements GroupSet { * @see org.wamblee.usermgt.GroupSet#size() */ public int size() { - return _groups.size(); + return groups.size(); } }