View Javadoc
1   package org.pojomatic.diff;
2   
3   import java.util.Collections;
4   
5   public final class NoDifferences implements Differences {
6     private static final NoDifferences INSTANCE = new NoDifferences();
7   
8     private NoDifferences() {
9     }
10  
11    @Override
12    public boolean areEqual() {
13      return true;
14    }
15  
16    @Override
17    public String toString() {
18      return "no differences";
19    }
20  
21    public static NoDifferences getInstance() {
22      return INSTANCE;
23    }
24  
25    @Override
26    public Iterable<Difference> differences() {
27      return Collections.emptyList();
28    }
29  
30  }