final variables and parameters

seeing some methods it does actually help to enforce the parameters
This commit is contained in:
thatsIch
2015-09-25 23:10:56 +02:00
parent e52400bf26
commit 410d2f1e0d
819 changed files with 9390 additions and 9396 deletions
@@ -31,7 +31,7 @@ public class DefaultPriorityList<T extends IAEStack<T>> implements IPartitionLis
static final List NULL_LIST = new ArrayList();
@Override
public boolean isListed( T input )
public boolean isListed( final T input )
{
return false;
}
@@ -32,16 +32,16 @@ public class FuzzyPriorityList<T extends IAEStack<T>> implements IPartitionList<
final IItemList<T> list;
final FuzzyMode mode;
public FuzzyPriorityList( IItemList<T> in, FuzzyMode mode )
public FuzzyPriorityList( final IItemList<T> in, final FuzzyMode mode )
{
this.list = in;
this.mode = mode;
}
@Override
public boolean isListed( T input )
public boolean isListed( final T input )
{
Collection<T> out = this.list.findFuzzy( input, this.mode );
final Collection<T> out = this.list.findFuzzy( input, this.mode );
return out != null && !out.isEmpty();
}
@@ -31,7 +31,7 @@ public final class MergedPriorityList<T extends IAEStack<T>> implements IPartiti
private final Collection<IPartitionList<T>> positive = new ArrayList<IPartitionList<T>>();
private final Collection<IPartitionList<T>> negative = new ArrayList<IPartitionList<T>>();
public void addNewList( IPartitionList<T> list, boolean isWhitelist )
public void addNewList( final IPartitionList<T> list, final boolean isWhitelist )
{
if( isWhitelist )
{
@@ -44,9 +44,9 @@ public final class MergedPriorityList<T extends IAEStack<T>> implements IPartiti
}
@Override
public boolean isListed( T input )
public boolean isListed( final T input )
{
for( IPartitionList<T> l : this.negative )
for( final IPartitionList<T> l : this.negative )
{
if( l.isListed( input ) )
{
@@ -56,7 +56,7 @@ public final class MergedPriorityList<T extends IAEStack<T>> implements IPartiti
if( !this.positive.isEmpty() )
{
for( IPartitionList<T> l : this.positive )
for( final IPartitionList<T> l : this.positive )
{
if( l.isListed( input ) )
{
@@ -28,13 +28,13 @@ public class PrecisePriorityList<T extends IAEStack<T>> implements IPartitionLis
final IItemList<T> list;
public PrecisePriorityList( IItemList<T> in )
public PrecisePriorityList( final IItemList<T> in )
{
this.list = in;
}
@Override
public boolean isListed( T input )
public boolean isListed( final T input )
{
return this.list.findPrecise( input ) != null;
}