Skip to content

Commit

Permalink
Rename Swatch.colors to Swatch.palette
Browse files Browse the repository at this point in the history
  • Loading branch information
sangupta committed Apr 12, 2019
1 parent 6e20295 commit 352d1a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/sangupta/colors/Swatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Swatch<T extends ColorModel> {
/**
* Colors that are part of this {@link Swatch}
*/
public final List<T> colors = new ArrayList<>();
public final List<T> palette = new ArrayList<>();

/**
* Create a new {@link Swatch} which is empty
Expand All @@ -37,7 +37,7 @@ public Swatch(T[] colors) {
}

for(T color : colors) {
this.colors.add(color);
this.palette.add(color);
}
}

Expand All @@ -51,7 +51,7 @@ public void add(T color) {
return;
}

this.colors.add(color);
this.palette.add(color);
}

}

0 comments on commit 352d1a8

Please sign in to comment.