1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.util;
16  
17  /**
18   * <a href="HashCode.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface HashCode {
23  
24      public HashCode append(boolean value);
25  
26      public HashCode append(boolean[] value);
27  
28      public HashCode append(byte value);
29  
30      public HashCode append(byte[] value);
31  
32      public HashCode append(char value);
33  
34      public HashCode append(char[] value);
35  
36      public HashCode append(double value);
37  
38      public HashCode append(double[] value);
39  
40      public HashCode append(float value);
41  
42      public HashCode append(float[] value);
43  
44      public HashCode append(int value);
45  
46      public HashCode append(int[] value);
47  
48      public HashCode append(long value);
49  
50      public HashCode append(long[] value);
51  
52      public HashCode append(Object value);
53  
54      public HashCode append(Object[] value);
55  
56      public HashCode append(short value);
57  
58      public HashCode append(short[] value);
59  
60      public HashCode appendSuper(int superHashCode);
61  
62      public int toHashCode();
63  
64  }