summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/data/ListHolder.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
commitdf94066e3af02ff02d5ab4d033a3d603f743234c (patch)
tree168a1edaf58d386c175ffb601e9d4da8e13d31e2 /base/src/main/java/bjc/utils/data/ListHolder.java
parentae51c587c53f7ca311e556e3cbd0c5566d6c2843 (diff)
Formatting pass
Diffstat (limited to 'base/src/main/java/bjc/utils/data/ListHolder.java')
-rw-r--r--base/src/main/java/bjc/utils/data/ListHolder.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/base/src/main/java/bjc/utils/data/ListHolder.java b/base/src/main/java/bjc/utils/data/ListHolder.java
index 4564466..dbcdf6e 100644
--- a/base/src/main/java/bjc/utils/data/ListHolder.java
+++ b/base/src/main/java/bjc/utils/data/ListHolder.java
@@ -13,7 +13,7 @@ import bjc.utils.funcdata.IList;
* @author ben
*
* @param <ContainedType>
- * The type of contained value.
+ * The type of contained value.
*/
public class ListHolder<ContainedType> implements IHolder<ContainedType> {
private IList<ContainedType> heldValues;
@@ -22,14 +22,14 @@ public class ListHolder<ContainedType> implements IHolder<ContainedType> {
* Create a new list holder.
*
* @param values
- * The possible values for the computation.
+ * The possible values for the computation.
*/
@SafeVarargs
public ListHolder(final ContainedType... values) {
heldValues = new FunctionalList<>();
- if (values != null) {
- for (final ContainedType containedValue : values) {
+ if(values != null) {
+ for(final ContainedType containedValue : values) {
heldValues.add(containedValue);
}
}
@@ -90,15 +90,15 @@ public class ListHolder<ContainedType> implements IHolder<ContainedType> {
@Override
public boolean equals(final Object obj) {
- if (this == obj) return true;
- if (obj == null) return false;
- if (!(obj instanceof ListHolder<?>)) return false;
+ if(this == obj) return true;
+ if(obj == null) return false;
+ if(!(obj instanceof ListHolder<?>)) return false;
final ListHolder<?> other = (ListHolder<?>) obj;
- if (heldValues == null) {
- if (other.heldValues != null) return false;
- } else if (!heldValues.equals(other.heldValues)) return false;
+ if(heldValues == null) {
+ if(other.heldValues != null) return false;
+ } else if(!heldValues.equals(other.heldValues)) return false;
return true;
}