Puts everywhere brackets
This commit is contained in:
@@ -36,9 +36,13 @@ public class EnergyThreshold implements Comparable<EnergyThreshold>
|
||||
this.watcher = wat;
|
||||
|
||||
if( this.watcher != null )
|
||||
{
|
||||
this.hash = this.watcher.hashCode() ^ ( (Double) lim ).hashCode();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.hash = ( (Double) lim ).hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -94,7 +94,9 @@ public class EnergyWatcher implements IEnergyWatcher
|
||||
public boolean add( Double e )
|
||||
{
|
||||
if( this.myInterests.contains( e ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
EnergyThreshold eh = new EnergyThreshold( e, this );
|
||||
return this.gsc.interests.add( eh ) && this.myInterests.add( eh );
|
||||
@@ -119,7 +121,9 @@ public class EnergyWatcher implements IEnergyWatcher
|
||||
boolean didChange = false;
|
||||
|
||||
for( Double o : c )
|
||||
{
|
||||
didChange = this.add( o ) || didChange;
|
||||
}
|
||||
|
||||
return didChange;
|
||||
}
|
||||
@@ -129,7 +133,9 @@ public class EnergyWatcher implements IEnergyWatcher
|
||||
{
|
||||
boolean didSomething = false;
|
||||
for( Object o : c )
|
||||
{
|
||||
didSomething = this.remove( o ) || didSomething;
|
||||
}
|
||||
return didSomething;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user