Click here to read "Entity Equals"
Part of the "Jelly Beans" part of a trilogy in 42 parts
Let's look at neatening up those messy equals() and hashCode() methods in our entities.
Code Snippet
public class Feed {
private int id;
private String uri;
...
private Comparable[] values() {
return new Comparable[] {id, uri};
}
public boolean...
I have one very simple rule for design, namely to create as many classes as possible!
Let's name this "Evan's Rule of Simplicity by Multiplicity."
So I just noticed a simple cue to refactor out a class.
Consider the following GUI construction.
public class MainView {
JTabbedPane mainTabbedPane = new JTabbedPane();
...
DefaultMutableTreeNode categoryRootTreeNode = new...
Here is a sneak preview of a trivial feed reader app using the Java6 SystemTray.
It checks a few preconfigured (Java) feeds every 10 minutes,
popping up a message when a new article is spotted.
(FeedTray, 1M/250k, unsandboxed, Java6)
The feedtray
app itself is small (18k using pack200), but depends on
ROME
and AppFramework
and their dependencies ie. jDOM
and SwingWorker,...