2 * Copyright (C) 2019 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.view
.search
.facet
;
18 private String category
;
21 public Facet(String facet
) {
25 public Facet(String facet
, String category
) {
26 this.category
= category
;
30 public String
getCategory() {
34 public String
getFacet() {
39 public int hashCode() {
42 result
= prime
* result
+ ((category
== null) ?
0 : category
.hashCode());
43 result
= prime
* result
+ ((facet
== null) ?
0 : facet
.hashCode());
48 public boolean equals(Object obj
) {
55 if (getClass() != obj
.getClass()) {
58 Facet other
= (Facet
) obj
;
59 if (category
== null) {
60 if (other
.category
!= null) {
63 } else if (!category
.equals(other
.category
)) {
67 if (other
.facet
!= null) {
70 } else if (!facet
.equals(other
.facet
)) {