Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorpfullbright2012-07-20 20:22:19 +0000
committerpfullbright2012-07-20 20:22:19 +0000
commitda67a8b4a25184b38b79487e04dbf6ebcde96b9c (patch)
tree077cc92b6548136d6f1c3c05fd6125f56dd1f89d /common
parente4eb7319e86d86608db62249f3025093539d839a (diff)
downloadwebtools.dali-da67a8b4a25184b38b79487e04dbf6ebcde96b9c.tar.gz
webtools.dali-da67a8b4a25184b38b79487e04dbf6ebcde96b9c.tar.xz
webtools.dali-da67a8b4a25184b38b79487e04dbf6ebcde96b9c.zip
moved back to SourceType
Diffstat (limited to 'common')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/CounterMap.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/CounterMap.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/CounterMap.java
deleted file mode 100644
index ca093688f0..0000000000
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/CounterMap.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Oracle. All rights reserved.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0, which accompanies this distribution
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jpt.common.core.internal.resource.java;
-
-import java.util.HashMap;
-import org.eclipse.jpt.common.utility.internal.SimpleIntReference;
-
-public class CounterMap {
-
- private final HashMap<Object, SimpleIntReference> counters;
-
-
- public CounterMap(int initialCapacity) {
- super();
- this.counters = new HashMap<Object, SimpleIntReference>(initialCapacity);
- }
-
-
- /**
- * Return the incremented count for the specified object.
- */
- public int increment(Object o) {
- SimpleIntReference counter = this.counters.get(o);
- if (counter == null) {
- counter = new SimpleIntReference();
- this.counters.put(o, counter);
- }
- counter.increment();
- return counter.getValue();
- }
-} \ No newline at end of file

Back to the top