diff options
author | pfullbright | 2012-07-20 20:22:19 +0000 |
---|---|---|
committer | pfullbright | 2012-07-20 20:22:19 +0000 |
commit | da67a8b4a25184b38b79487e04dbf6ebcde96b9c (patch) | |
tree | 077cc92b6548136d6f1c3c05fd6125f56dd1f89d /common | |
parent | e4eb7319e86d86608db62249f3025093539d839a (diff) | |
download | webtools.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.java | 38 |
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 |