Mercurial > projects > dwt2
annotate org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/set/SetDiff.d @ 125:c43718956f21 default tip
Updated the snippets status.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 11 Aug 2011 19:55:14 +0200 |
parents | 9e0ab372d5d8 |
children |
rev | line source |
---|---|
78 | 1 /******************************************************************************* |
2 * Copyright (c) 2006, 2007 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 *******************************************************************************/ | |
11 | |
12 module org.eclipse.core.databinding.observable.set.SetDiff; | |
13 | |
14 import java.lang.all; | |
15 | |
16 import java.util.Set; | |
17 | |
18 /** | |
19 * @since 1.0 | |
20 * | |
21 */ | |
22 public abstract class SetDiff { | |
23 | |
24 /** | |
25 * @return the set of added elements | |
26 */ | |
27 public abstract Set getAdditions(); | |
28 | |
29 /** | |
30 * @return the set of removed elements | |
31 */ | |
32 public abstract Set getRemovals(); | |
33 | |
34 /** | |
35 * @see java.lang.Object#toString() | |
36 */ | |
37 public String toString() { | |
38 StringBuffer buffer = new StringBuffer(); | |
39 buffer | |
88
9e0ab372d5d8
Revert from TypeInfo/ClassInfo to java.lang.Class
Frank Benoit <benoit@tionex.de>
parents:
85
diff
changeset
|
40 .append(Class.fromObject(this).getName()) |
78 | 41 .append("{additions [") //$NON-NLS-1$ |
42 .append(getAdditions() !is null ? getAdditions().toString() : "null") //$NON-NLS-1$ | |
43 .append("], removals [") //$NON-NLS-1$ | |
44 .append(getRemovals() !is null ? getRemovals().toString() : "null") //$NON-NLS-1$ | |
45 .append("]}"); //$NON-NLS-1$ | |
46 | |
47 return buffer.toString(); | |
48 } | |
49 } |