81+ results for 'java TreeMap' (0 ms)

Not the results you expected?

ReadEDTFile.java (https://github.com/mothlight/Solweig_graphs.git) Java · 466 lines

7 import java.io.BufferedInputStream;

8 import java.io.DataInputStream;

9 import java.io.File;

10 import java.io.FileInputStream;

11 import java.io.FileNotFoundException;

12 import java.io.IOException;

13 import java.text.DecimalFormat;

14 import java.util.ArrayList;

15 import java.util.TreeMap;

16

17 /*

36 public static final String Z = "z";

37

38 private TreeMap data;

39

40 public TreeMap getData()

FichaClienteCompras.java (https://gitlab.com/andrerfcsantos/GesthiperJava) Java · 346 lines

1 package lei.li3.g50.modulos.compras;

2

3 import java.io.Serializable;

4 import java.util.ArrayList;

5 import java.util.List;

6 import java.util.Map;

7 import java.util.Objects;

8 import java.util.TreeMap;

9 import java.util.TreeSet;

226 public Map<Mes, Integer> getNumeroProdutosDistintosPorMes() {

227 int numeroProdsDistintosPorMes[] = new int[12];

228 TreeMap<Mes, Integer> resultado = new TreeMap<>();

229

230 for (FichaProdutoDeClienteCompras ficha_produto : this.produtosCliente.values()) {

DefaultObjectDeserializer.java (https://github.com/flydream/fastjson.git) Java · 356 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import java.lang.reflect.Method;

4 import java.lang.reflect.Modifier;

5 import java.lang.reflect.ParameterizedType;

6 import java.lang.reflect.Type;

7 import java.lang.reflect.TypeVariable;

8 import java.lang.reflect.WildcardType;

9 import java.util.HashMap;

10 import java.util.List;

11 import java.util.Map;

12 import java.util.Properties;

13 import java.util.SortedMap;

14 import java.util.TreeMap;

15 import java.util.concurrent.ConcurrentHashMap;

ResolveProdTransformIds.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 357 lines

10 import org.sablecc.sablecc.analysis.*;

11 import org.sablecc.sablecc.node.*;

12 import java.util.*;

13 import java.io.*;

46

47 //Map of Productions which transformations contains list elements.

48 public Map mapProdTransformContainsList = new TypedTreeMap(

49 StringComparator.instance,

50 StringCast.instance,

52

53 //Map of all Production transformations elements.

54 public final Map prod_transforms = new TypedTreeMap(

55 StringComparator.instance,

56 StringCast.instance,

ResolveIds.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 672 lines

10 import org.sablecc.sablecc.analysis.*;

11 import org.sablecc.sablecc.node.*;

12 import java.util.*;

13 import java.io.*;

15 public class ResolveIds extends DepthFirstAdapter

16 {

17 public final Map helpers = new TypedTreeMap(

18 StringComparator.instance,

19 StringCast.instance,

20 NodeCast.instance);

21 public final Map states = new TypedTreeMap(

22 StringComparator.instance,

23 StringCast.instance,

24 NodeCast.instance);

25 public final Map tokens = new TypedTreeMap(

26 StringComparator.instance,

27 StringCast.instance,

TreeUtilities.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1460 lines

4 * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.

5 *

6 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.

7 * Other names may be trademarks of their respective owners.

8 *

46 import java.util.Map;

47 import java.util.TreeMap;

48 import java.util.Collection;

49 import java.io.ByteArrayInputStream;

50 import java.io.IOException;

51 import java.io.InputStreamReader;

52

53 import org.netbeans.tax.spec.AttlistDecl;

GMXSchema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1142 lines

1 package org.geotools.gml3.v3_2.gmx;

2

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.List;

6 import java.util.TreeMap;

7

8 import org.geotools.feature.NameImpl;

GMDSchema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1118 lines

1 package org.geotools.gml3.v3_2.gmd;

2

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.List;

6 import java.util.TreeMap;

7

8 import org.geotools.feature.NameImpl;

GCOSchema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1284 lines

1 package org.geotools.gml3.v3_2.gco;

2

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.List;

6 import java.util.TreeMap;

7

8 import org.geotools.feature.NameImpl;

468 AttributeType builtType = new AbstractLazyAttributeTypeImpl(

469 new NameImpl("http://www.isotc211.org/2005/gco","Date_Type"),

470 java.lang.Object.class, false, false, null, null) {

471 @Override

472 public AttributeType buildSuper() {

GMLSchema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1168 lines

1 package org.geotools.gml3.v3_2;

2

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.List;

6 import java.util.TreeMap;

7

8 import org.geotools.feature.NameImpl;

SpecialKey.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 490 lines

14 import java.util.SortedMap;

15 import java.util.TreeMap;

16

17 import org.eclipse.jface.bindings.keys.IKeyLookup;

42 * given the formal string representation of a special key.

43 */

44 static SortedMap specialKeysByName = new TreeMap();

45

46 /**

AbstractTestSortedBidiMap.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 628 lines

17 package org.apache.commons.collections.bidimap;

18

19 import java.util.ArrayList;

20 import java.util.Arrays;

21 import java.util.Collections;

22 import java.util.Iterator;

23 import java.util.List;

24 import java.util.Map;

25 import java.util.Set;

26 import java.util.SortedMap;

27 import java.util.SortedSet;

28 import java.util.TreeMap;

29 import java.util.TreeSet;

TreeMapExtendTest.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 1345 lines

79 public void test_TreeMap_Constructor_Default() {

80 TreeMap treeMap = new TreeMap();

81 assertTrue(treeMap.isEmpty());

127 public void test_TreeMap_Constructor_Comparator() {

128 MockComparator mockComparator = new MockComparator();

129 TreeMap treeMap = new TreeMap(mockComparator);

130

131 assertEquals(mockComparator, treeMap.comparator());

134 public void test_TreeMap_Constructor_Map() {

135 TreeMap treeMap = new TreeMap(tm);

136 assertEquals(tm.size(), treeMap.size());

155 public void test_TreeMap_Constructor_SortedMap() {

156 TreeMap treeMap = new TreeMap(subMap_default);

157 assertEquals(subMap_default.size(), treeMap.size());

169 public void test_TreeMap_clone() {

170 TreeMap cloneTreeMap = (TreeMap) tm.clone();

171 assertEquals(tm, cloneTreeMap);

LoanScheduleParams.java (https://gitlab.com/skylabase/incubator-fineract) Java · 481 lines

19 package org.apache.fineract.portfolio.loanaccount.loanschedule.data;

20

21 import java.util.ArrayList;

22 import java.util.Collection;

23 import java.util.HashMap;

24 import java.util.List;

25 import java.util.Map;

26 import java.util.TreeMap;

27

28 import org.apache.fineract.organisation.monetary.domain.MonetaryCurrency;

212 final Map<LocalDate, Money> principalPortionMap = new HashMap<>();

213 final Map<LocalDate, Money> latePaymentMap = new HashMap<>();

214 final Map<LocalDate, Money> compoundingMap = new TreeMap<>();

215 final Map<LocalDate, Money> disburseDetailMap = new TreeMap<>();

PortletFactory.java (https://github.com/ccrouch/rhq.git) Java · 288 lines

19 package org.rhq.enterprise.gui.coregui.client.dashboard;

20

21 import java.util.HashMap;

22 import java.util.Iterator;

23 import java.util.LinkedHashMap;

24 import java.util.TreeMap;

25

26 import com.smartgwt.client.widgets.Canvas;

73 // although portlet names are I18N, they are assumed to be unique. This maps portlet names to portlet keys,

74 // and the keyset is sorted for convenient display.

75 private static final TreeMap<String, String> globalPortletNameMap;

76 // although portlet names are I18N, they are assumed to be unique. This maps portlet keys to portlet names,

77 // and is suitable for a sorted Menu value map.

80 //Group portlet registrations, diff from default portlets as only applicable for specific group

81 private static final HashMap<String, PortletViewFactory> groupPortletFactoryMap;

82 private static final TreeMap<String, String> groupPortletNameMap;

83 private static final LinkedHashMap<String, String> groupPortletMenuMap;

84

InterpolatedFromCurvesDoublesSurfaceTest.java (https://github.com/gsteri1/OG-Platform.git) Java · 585 lines

11 import static org.testng.internal.junit.ArrayAsserts.assertArrayEquals;

12

13 import java.util.ArrayList;

14 import java.util.Arrays;

15 import java.util.Collections;

16 import java.util.HashMap;

17 import java.util.List;

18 import java.util.Map;

19 import java.util.TreeMap;

20

21 import org.testng.annotations.Test;

64 CURVES_LIST_SORTED = new ArrayList<Curve<Double, Double>>();

65 MAP = new HashMap<Double, Curve<Double, Double>>();

66 MAP_SORTED = new TreeMap<Double, Curve<Double, Double>>();

67 for (int i = 0; i < n; i++) {

68 final double x1 = POINT_PRIMITIVE[i];

InterpolatedFromSurfacesDoublesCubeTest.java (https://github.com/gsteri1/OG-Platform.git) Java · 565 lines

15 import java.util.Map;

16 import java.util.TreeMap;

17

18 import org.testng.annotations.Test;

147 assertEquals(other.getPlane(), SurfacePlane.XY);

148 assertFalse(other.equals(XZ_CUBE));

149 TreeMap<Double, Surface<Double, Double, Double>> m = new TreeMap<Double, Surface<Double, Double, Double>>();

150 m.put(1., S1);

151 m.put(2.5, S2);

432 @Test(expectedExceptions = IllegalArgumentException.class)

433 public void testNullEntry1() {

434 final TreeMap<Double, Surface<Double, Double, Double>> m = new TreeMap<Double, Surface<Double, Double, Double>>();

435 m.put(1., S1);

436 m.put(2., null);

441 @Test(expectedExceptions = IllegalArgumentException.class)

442 public void testNullEntry2() {

443 final TreeMap<Double, Surface<Double, Double, Double>> m = new TreeMap<Double, Surface<Double, Double, Double>>();

444 m.put(1., S1);

445 m.put(2., null);

InterpolatedDoublesSurface.java (https://github.com/gsteri1/OG-Platform.git) Java · 513 lines

6 package com.opengamma.math.surface;

7

8 import java.util.List;

9 import java.util.Map;

10 import java.util.TreeMap;

11

12 import org.apache.commons.lang.ObjectUtils;

448 // TODO this logic should be in the interpolator

449 private void init() {

450 final Map<DoublesPair, Double> map = new TreeMap<DoublesPair, Double>();

451 final double[] x = getXDataAsPrimitive();

452 final double[] y = getYDataAsPrimitive();

KeyValueIdentifier.java (https://github.com/stressfree/metahive.git) Java · 616 lines

11 package net.triptech.metahive;

12

13 import java.util.ArrayList;

14 import java.util.Collections;

15 import java.util.HashMap;

16 import java.util.List;

17 import java.util.Map;

18 import java.util.TreeMap;

19

20 import net.triptech.metahive.model.KeyValueBoolean;

106 Object keyValue = null;

107

108 TreeMap<String, Integer> valueSet = new TreeMap<String, Integer>();

109

110 for (Object value : values) {

Verbalizar.java (https://github.com/andycds/Verbalizar.git) Java · 781 lines

3 import java.util.Map;

4 import java.util.TreeMap;

5

6 public class Verbalizar {

7

8 Map<String, String[]> defectivos = new TreeMap<String, String[]>();

9

10 final static String ftVerbais[] = {"infinitivo", "gerúndio", "particípio passado"};

data_structures.clj (https://github.com/abimaran/clojure.git) Clojure · 830 lines

140 (count (into-array [1 2 3])) 3

141

142 (count (java.util.ArrayList. [])) 0

143 (count (java.util.ArrayList. [1])) 1

144 (count (java.util.ArrayList. [1 2 3])) 3

145

146 (count (java.util.HashMap. {})) 0

147 (count (java.util.HashMap. {:a 1})) 1

148 (count (java.util.HashMap. {:a 1 :b 2 :c 3})) 3 )

394 (contains? #{1 2 3} nil) false)

395

396 ; numerically indexed collections (e.g. vectors and Java arrays)

397 ; => test if the numeric key is WITHIN THE RANGE OF INDEXES

398 (are [x y] (= x y)

data_structures.clj (https://github.com/abimaran/clojure-clr.git) Clojure · 835 lines

145 (into-array [1 2 3]) 3

146

147 (System.Collections.ArrayList. []) 0 ;;; java.util.ArrayList.

148 (System.Collections.ArrayList. [1]) 1 ;;; java.util.ArrayList.

149 (System.Collections.ArrayList. [1 2 3]) 3 ;;; java.util.ArrayList.

150

151 (System.Collections.Hashtable. {}) 0 ;;; java.util.HashMap.

152 (System.Collections.Hashtable. {:a 1}) 1 ;;; java.util.HashMap.

153 (System.Collections.Hashtable. {:a 1 :b 2 :c 3}) 3 )) ;;; java.util.HashMap.

399 (contains? #{1 2 3} nil) false)

400

401 ; numerically indexed collections (e.g. vectors and Java arrays)

402 ; => test if the numeric key is WITHIN THE RANGE OF INDEXES

403 (are [x y] (= x y)

XYMultipleSeriesRenderer.java (https://github.com/d4rxh4wx/AChartEngine.git) Java · 1099 lines

16 package org.achartengine.renderer;

17

18 import java.util.HashMap;

19 import java.util.LinkedHashMap;

20 import java.util.Map;

21 import java.util.TreeMap;

22

23 import org.achartengine.util.MathHelper;

51 private Orientation mOrientation = Orientation.HORIZONTAL;

52 /** The X axis text labels. */

53 private Map<Double, String> mXTextLabels = new TreeMap<Double, String>();

54 /** The Y axis text labels. */

55 private Map<Integer, Map<Double, String>> mYTextLabels = new LinkedHashMap<Integer, Map<Double, String>>();

TreeSubMapTest.java (https://github.com/dmlloyd/jsr166.git) Java · 1101 lines

20 */

21 private static NavigableMap map5() {

22 TreeMap map = new TreeMap();

23 assertTrue(map.isEmpty());

24 map.put(zero, "Z");

35

36 private static NavigableMap map0() {

37 TreeMap map = new TreeMap();

38 assertTrue(map.isEmpty());

39 return map.tailMap(one, true);

44 */

45 private static NavigableMap dmap5() {

46 TreeMap map = new TreeMap();

47 assertTrue(map.isEmpty());

48 map.put(m1, "A");

TreeMapTest.java (https://github.com/dmlloyd/jsr166.git) Java · 1072 lines

47 TreeMap map = map5();

48 TreeMap map2 = new TreeMap(map);

49 assertEquals(map, map2);

50 }

318 */

319 public void testPutAll() {

320 TreeMap empty = new TreeMap();

321 TreeMap map = map5();

543 TreeMap map = map5();

544 TreeMap empty = new TreeMap();

545 assertEquals(0, empty.size());

546 assertEquals(5, map.size());

587 public void testRemove1_NullPointerException() {

588 try {

589 TreeMap c = new TreeMap();

590 c.put("sadsdf", "asdads");

591 c.remove(null);

InstanceSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 766 lines

21 import com.liferay.portal.workflow.metrics.rest.client.json.BaseJSONParser;

22

23 import java.text.DateFormat;

24 import java.text.SimpleDateFormat;

25

26 import java.util.Iterator;

27 import java.util.Map;

28 import java.util.Objects;

29 import java.util.Set;

30 import java.util.TreeMap;

31 import java.util.stream.Stream;

32

33 import javax.annotation.Generated;

34

35 /**

ProductSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 865 lines

21 import com.liferay.headless.commerce.machine.learning.client.json.BaseJSONParser;

22

23 import java.text.DateFormat;

24 import java.text.SimpleDateFormat;

25

26 import java.util.Iterator;

27 import java.util.Map;

28 import java.util.Objects;

29 import java.util.Set;

30 import java.util.TreeMap;

31 import java.util.stream.Stream;

32

33 import javax.annotation.Generated;

34

35 /**

ObjectDefinitionSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 905 lines

23 import com.liferay.object.admin.rest.client.json.BaseJSONParser;

24

25 import java.text.DateFormat;

26 import java.text.SimpleDateFormat;

27

28 import java.util.Iterator;

29 import java.util.Map;

30 import java.util.Objects;

31 import java.util.Set;

32 import java.util.TreeMap;

33 import java.util.stream.Stream;

34

35 import javax.annotation.Generated;

36

37 /**

PageCollectionDefinitionSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 658 lines

20 import com.liferay.headless.delivery.client.json.BaseJSONParser;

21

22 import java.util.Iterator;

23 import java.util.Map;

24 import java.util.Objects;

25 import java.util.Set;

26 import java.util.TreeMap;

27 import java.util.stream.Stream;

28

29 import javax.annotation.Generated;

30

31 /**

KnowledgeBaseArticleSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 969 lines

21 import com.liferay.headless.delivery.client.json.BaseJSONParser;

22

23 import java.text.DateFormat;

24 import java.text.SimpleDateFormat;

25

26 import java.util.Iterator;

27 import java.util.Map;

28 import java.util.Objects;

29 import java.util.Set;

30 import java.util.TreeMap;

31 import java.util.stream.Stream;

32

33 import javax.annotation.Generated;

34

35 /**

FragmentViewportStyleSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 946 lines

18 import com.liferay.headless.delivery.client.json.BaseJSONParser;

19

20 import java.util.Iterator;

21 import java.util.Map;

22 import java.util.Objects;

23 import java.util.Set;

24 import java.util.TreeMap;

25

26 import javax.annotation.Generated;

449 }

450

451 Map<String, String> map = new TreeMap<>();

452

453 if (fragmentViewportStyle.getBackgroundColor() == null) {

FragmentStyleSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 918 lines

18 import com.liferay.headless.delivery.client.json.BaseJSONParser;

19

20 import java.util.Iterator;

21 import java.util.Map;

22 import java.util.Objects;

23 import java.util.Set;

24 import java.util.TreeMap;

25

26 import javax.annotation.Generated;

458 }

459

460 Map<String, String> map = new TreeMap<>();

461

462 if (fragmentStyle.getBackgroundColor() == null) {

OrganizationSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 811 lines

22 import com.liferay.headless.admin.user.client.json.BaseJSONParser;

23

24 import java.text.DateFormat;

25 import java.text.SimpleDateFormat;

26

27 import java.util.Iterator;

28 import java.util.Map;

29 import java.util.Objects;

30 import java.util.Set;

31 import java.util.TreeMap;

32 import java.util.stream.Stream;

33

34 import javax.annotation.Generated;

35

36 /**

TaxonomyCategorySerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 745 lines

19 import com.liferay.headless.admin.taxonomy.client.json.BaseJSONParser;

20

21 import java.text.DateFormat;

22 import java.text.SimpleDateFormat;

23

24 import java.util.Iterator;

25 import java.util.Map;

26 import java.util.Objects;

27 import java.util.Set;

28 import java.util.TreeMap;

29 import java.util.stream.Stream;

30

31 import javax.annotation.Generated;

32

33 /**

StructuredContentSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 1157 lines

23 import com.liferay.headless.admin.content.client.json.BaseJSONParser;

24

25 import java.text.DateFormat;

26 import java.text.SimpleDateFormat;

27

28 import java.util.Iterator;

29 import java.util.Map;

30 import java.util.Objects;

31 import java.util.Set;

32 import java.util.TreeMap;

33 import java.util.stream.Stream;

34

35 import javax.annotation.Generated;

36

37 /**

LayoutReferencesExportImportContentProcessorTest.java (https://github.com/danielreuther/liferay-portal.git) Java · 837 lines

49 import com.liferay.portal.util.PropsValues;

50

51 import java.util.Date;

52 import java.util.HashMap;

53 import java.util.Locale;

54 import java.util.TreeMap;

55

56 import org.junit.Assert;

806 }

807

808 TreeMap<String, String> virtualHostnames =

809 layoutSet.getVirtualHostnames();

810

MappedProductSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 780 lines

20 import com.liferay.headless.commerce.delivery.catalog.client.json.BaseJSONParser;

21

22 import java.util.Iterator;

23 import java.util.Map;

24 import java.util.Objects;

25 import java.util.Set;

26 import java.util.TreeMap;

27 import java.util.stream.Stream;

28

29 import javax.annotation.Generated;

30

31 /**

SummarySerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 790 lines

18 import com.liferay.headless.commerce.delivery.cart.client.json.BaseJSONParser;

19

20 import java.util.Iterator;

21 import java.util.Map;

22 import java.util.Objects;

23 import java.util.Set;

24 import java.util.TreeMap;

25

26 import javax.annotation.Generated;

365 }

366

367 Map<String, String> map = new TreeMap<>();

368

369 if (summary.getCurrency() == null) {

CartSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 1140 lines

20 import com.liferay.headless.commerce.delivery.cart.client.json.BaseJSONParser;

21

22 import java.text.DateFormat;

23 import java.text.SimpleDateFormat;

24

25 import java.util.Iterator;

26 import java.util.Map;

27 import java.util.Objects;

28 import java.util.Set;

29 import java.util.TreeMap;

30 import java.util.stream.Stream;

31

32 import javax.annotation.Generated;

33

34 /**

OrderSerDes.java (https://github.com/danielreuther/liferay-portal.git) Java · 2226 lines

19 import com.liferay.headless.commerce.admin.order.client.json.BaseJSONParser;

20

21 import java.math.BigDecimal;

22

23 import java.text.DateFormat;

24 import java.text.SimpleDateFormat;

25

26 import java.util.Iterator;

27 import java.util.Map;

28 import java.util.Objects;

29 import java.util.Set;

30 import java.util.TreeMap;

31 import java.util.stream.Stream;

java_nio_charset_Charset.h (https://github.com/eclecticdave/emscripten.git) C Header · 226 lines

66 #ifndef XMLVM_FORWARD_DECL_java_nio_charset_CharsetDecoder

67 #define XMLVM_FORWARD_DECL_java_nio_charset_CharsetDecoder

68 XMLVM_FORWARD_DECL(java_nio_charset_CharsetDecoder)

71 #define XMLVM_FORWARD_DECL_java_nio_charset_CharsetEncoder

72 XMLVM_FORWARD_DECL(java_nio_charset_CharsetEncoder)

73 #endif

74 #ifndef XMLVM_FORWARD_DECL_java_nio_charset_CodingErrorAction

122 // Class declarations for java.nio.charset.Charset

123 XMLVM_DEFINE_CLASS(java_nio_charset_Charset, 10, XMLVM_ITABLE_SIZE_java_nio_charset_Charset)

124

125 extern JAVA_OBJECT __CLASS_java_nio_charset_Charset;

126 extern JAVA_OBJECT __CLASS_java_nio_charset_Charset_1ARRAY;

127 extern JAVA_OBJECT __CLASS_java_nio_charset_Charset_2ARRAY;

128 extern JAVA_OBJECT __CLASS_java_nio_charset_Charset_3ARRAY;

129 //XMLVM_BEGIN_DECLARATIONS

130 #define __ADDITIONAL_INSTANCE_FIELDS_java_nio_charset_Charset

MetricsRegistry.java (https://github.com/ntolia/metrics.git) Java · 511 lines

3 import com.yammer.metrics.core.Histogram.SampleType;

4

5 import java.util.*;

6 import java.util.concurrent.*;

368 public SortedMap<String, SortedMap<MetricName, Metric>> getGroupedMetrics(MetricPredicate predicate) {

369 final SortedMap<String, SortedMap<MetricName, Metric>> groups =

370 new TreeMap<String, SortedMap<MetricName, Metric>>();

371 for (Map.Entry<MetricName, Metric> entry : metrics.entrySet()) {

372 final String qualifiedTypeName = entry.getKey().getDomain() + "." + entry.getKey()

381 SortedMap<MetricName, Metric> group = groups.get(scopedName);

382 if (group == null) {

383 group = new TreeMap<MetricName, Metric>();

384 groups.put(scopedName, group);

385 }

SimpleColorDBExtractor.java (https://github.com/color4j/color4j.git) Java · 760 lines

23 import java.sql.ResultSet;

24 import java.sql.SQLException;

25 import java.sql.Statement;

26 import java.text.DecimalFormat;

27 import java.util.ArrayList;

31 import java.util.Map;

32 import java.util.TreeMap;

33 import org.color4j.imports.ImportException;

34

50 protected Map m_standardDescriptions;

51 protected Map m_standardAttributes;

52 protected Map<String, TreeMap<Integer, Object>> m_standardSpectrums;

53 protected Map<String, String> m_standardApertures;

54 protected Map<String, String> m_standardLights;

DoubleArrayTools.java (https://bitbucket.org/carrillo_f/arraytools.git) Java · 1119 lines

4 import inputOutput.TextFileAccess;

5

6 import java.io.File;

7 import java.io.PrintWriter;

8 import java.text.DecimalFormat;

9 import java.util.ArrayList;

10 import java.util.List;

11 import java.util.TreeMap;

12

13 import array.visualization.HeatMap;

572 {

573 //Get sorted index of eigenValues

574 TreeMap<Double, List<Integer>> map = new TreeMap<Double, List<Integer>>();

575 for(int i = 0; i < arrayToSort.length; i++)

576 {

TourHelper.java (https://gitlab.com/yzrhy/ServerRecommenderSystem) Java · 1255 lines

10 import static com.me.dbo.TourDBO.PARENTS;

11 import com.me.model.TourSite;

12 import java.sql.Connection;

13 import java.util.ArrayList;

14 import java.util.Arrays;

15 import java.util.Collections;

16 import java.util.Comparator;

17 import java.util.HashMap;

18 import java.util.LinkedHashMap;

19 import java.util.LinkedList;

22 import java.util.Iterator;

23 import java.util.TreeMap;

24

25 /**

IndexUtil.java (https://github.com/esteban-aliverti/drools.git) Java · 423 lines

14 import org.kie.internal.conf.IndexPrecedenceOption;

15

16 import java.util.ArrayList;

17 import java.util.List;

276

277 if (indexSpec.constraintType == ConstraintType.RANGE) {

278 // missing TreeMap based implementation for range indexes

279 return new RightTupleIndexRangeRBTree( indexSpec.ascendingConstraintType, indexSpec.indexes[0],

280 indexSpec.descendingConstraintType, indexSpec.indexes[1] );

301

302 if (indexSpec.constraintType == ConstraintType.RANGE) {

303 // missing TreeMap based implementation for range indexes

304 return new LeftTupleIndexRangeRBTree( indexSpec.ascendingConstraintType, indexSpec.indexes[0],

305 indexSpec.descendingConstraintType, indexSpec.indexes[1] );

415 for (int i = 0; i < expression.length(); i++) {

416 char ch = expression.charAt(i);

417 if ( !Character.isJavaIdentifierPart(ch) && ch != '.' ) {

418 return expression.substring(0, i);

419 }

AbstractBitwiseHierarchyImpl.java (https://github.com/esteban-aliverti/drools.git) Java · 549 lines

3 import org.drools.core.factmodel.traits.LatticeElement;

4

5 import java.io.Externalizable;

6 import java.io.IOException;

7 import java.io.ObjectInput;

8 import java.io.ObjectOutput;

9 import java.util.ArrayList;

10 import java.util.BitSet;

11 import java.util.Collection;

12 import java.util.Comparator;

13 import java.util.LinkedHashMap;

14 import java.util.List;

17 import java.util.SortedMap;

18 import java.util.TreeMap;

19

20

Main.java (https://github.com/geonnave/CollectionBenchmark.git) Java · 259 lines

92 hashMapInsertT[i] = hashMap.runInsert().clone();

93 linkedHashMapInsertT[i] = linkedHashMap.runInsert().clone();

94 treeMapInsertT[i] = treeMap.runInsert().clone();

95

96 arrayListSearchT[i] = arrayList.runSearch().clone();

112 hashMapRemoveT[i] = hashMap.runRemove().clone();

113 linkedHashMapRemoveT[i] = linkedHashMap.runRemove().clone();

114 treeMapRemoveT[i] = treeMap.runRemove().clone();

115

116 new Recorder(quantity).populateFiles();

237 removeCpuPS .print("\nArrayList\t"+arrayListRemoveTime.getCpuDiff()+"\nVector\t" +vectorListRemoveTime.getCpuDiff()+"\nLinkedList\t"+linkedListRemoveTime.getCpuDiff());

238 removeCpuPS .print("\nHashSet\t" +hashSetRemoveTime.getCpuDiff()+"\nlinkedHashSet\t"+linkedHashSetRemoveTime.getCpuDiff()+"\ntreeSet\t" +treeSetRemoveTime.getCpuDiff());

239 removeCpuPS .print("\nHashMap\t" +hashMapRemoveTime.getCpuDiff()+"\nLinkedHashMap\t"+linkedHashMapRemoveTime.getCpuDiff()+"\ntreeMap\t" +treeMapRemoveTime.getCpuDiff());

240

241 }

index-t.html (https://gitlab.com/adrian.io/ide) HTML · 384 lines

223 </div><div class="entry">

224 <div class="name">tail</div>

225 <div class="occurrences"><a href="../scala/collection/GenTraversableLike.html" class="extype" name="scala.collection.GenTraversableLike">GenTraversableLike</a> <a href="../scala/collection/IndexedSeqOptimized.html" class="extype" name="scala.collection.IndexedSeqOptimized">IndexedSeqOptimized</a> <a href="../scala/collection/TraversableLike.html" class="extype" name="scala.collection.TraversableLike">TraversableLike</a> <a href="../scala/collection/TraversableProxyLike.html" class="extype" name="scala.collection.TraversableProxyLike">TraversableProxyLike</a> <a href="../scala/collection/TraversableViewLike.html" class="extype" name="scala.collection.TraversableViewLike">TraversableViewLike</a> <a href="../scala/collection/immutable/$colon$colon.html" class="extype" name="scala.collection.immutable.::">::</a> <a href="../scala/collection/immutable/ListSet.html" class="extype" name="scala.collection.immutable.ListSet">ListSet</a> <a href="../scala/collection/immutable/ListSet$Node.html" class="extype" name="scala.collection.immutable.ListSet.Node">Node</a> <a href="../scala/collection/immutable/Nil$.html" class="extype" name="scala.collection.immutable.Nil">Nil</a> <a href="../scala/collection/immutable/Queue.html" class="extype" name="scala.collection.immutable.Queue">Queue</a> <a href="../scala/collection/immutable/Range.html" class="extype" name="scala.collection.immutable.Range">Range</a> <a href="../scala/collection/immutable/Stack.html" class="extype" name="scala.collection.immutable.Stack">Stack</a> <a href="../scala/collection/immutable/Stream$$Cons.html" class="extype" name="scala.collection.immutable.Stream.Cons">Cons</a> <a href="../scala/collection/immutable/Stream$$Empty$.html" class="extype" name="scala.collection.immutable.Stream.Empty">Empty</a> <a href="../scala/collection/immutable/TreeMap.html" class="extype" name="scala.collection.immutable.TreeMap">TreeMap</a> <a href="../scala/collection/immutable/TreeSet.html" class="extype" name="scala.collection.immutable.TreeSet">TreeSet</a> <a href="../scala/collection/immutable/Vector.html" class="extype" name="scala.collection.immutable.Vector">Vector</a> <a href="../scala/collection/mutable/DoubleLinkedListLike.html" class="extype" name="scala.collection.mutable.DoubleLinkedListLike">DoubleLinkedListLike</a> <a href="../scala/collection/mutable/IndexedSeqView.html" class="extype" name="scala.collection.mutable.IndexedSeqView">IndexedSeqView</a> <a href="../scala/collection/mutable/LinkedListLike.html" class="extype" name="scala.collection.mutable.LinkedListLike">LinkedListLike</a> <a href="../scala/collection/mutable/MutableList.html" class="extype" name="scala.collection.mutable.MutableList">MutableList</a> <a href="../scala/collection/mutable/Queue.html" class="extype" name="scala.collection.mutable.Queue">Queue</a> <a href="../scala/collection/parallel/ParIterableLike.html" class="extype" name="scala.collection.parallel.ParIterableLike">ParIterableLike</a> </div>

226 </div><div class="entry">

227 <div class="name">tailDefined</div>

241 </div><div class="entry">

242 <div class="name">take</div>

243 <div class="occurrences"><a href="../scala/collection/GenTraversableLike.html" class="extype" name="scala.collection.GenTraversableLike">GenTraversableLike</a> <a href="../scala/collection/IndexedSeqLike$Elements.html" class="extype" name="scala.collection.IndexedSeqLike.Elements">Elements</a> <a href="../scala/collection/IndexedSeqOptimized.html" class="extype" name="scala.collection.IndexedSeqOptimized">IndexedSeqOptimized</a> <a href="../scala/collection/IterableLike.html" class="extype" name="scala.collection.IterableLike">IterableLike</a> <a href="../scala/collection/IterableViewLike.html" class="extype" name="scala.collection.IterableViewLike">IterableViewLike</a> <a href="../scala/collection/Iterator.html" class="extype" name="scala.collection.Iterator">Iterator</a> <a href="../scala/collection/LinearSeqOptimized.html" class="extype" name="scala.collection.LinearSeqOptimized">LinearSeqOptimized</a> <a href="../scala/collection/TraversableLike.html" class="extype" name="scala.collection.TraversableLike">TraversableLike</a> <a href="../scala/collection/TraversableProxyLike.html" class="extype" name="scala.collection.TraversableProxyLike">TraversableProxyLike</a> <a href="../scala/collection/TraversableViewLike.html" class="extype" name="scala.collection.TraversableViewLike">TraversableViewLike</a> <a href="../scala/collection/immutable/List.html" class="extype" name="scala.collection.immutable.List">List</a> <a href="../scala/collection/immutable/NumericRange.html" class="extype" name="scala.collection.immutable.NumericRange">NumericRange</a> <a href="../scala/collection/immutable/Range.html" class="extype" name="scala.collection.immutable.Range">Range</a> <a href="../scala/collection/immutable/Stream.html" class="extype" name="scala.collection.immutable.Stream">Stream</a> <a href="../scala/collection/immutable/TreeMap.html" class="extype" name="scala.collection.immutable.TreeMap">TreeMap</a> <a href="../scala/collection/immutable/TreeSet.html" class="extype" name="scala.collection.immutable.TreeSet">TreeSet</a> <a href="../scala/collection/immutable/Vector.html" class="extype" name="scala.collection.immutable.Vector">Vector</a> <a href="../scala/collection/mutable/IndexedSeqView.html" class="extype" name="scala.collection.mutable.IndexedSeqView">IndexedSeqView</a> <a href="../scala/collection/parallel/IterableSplitter.html" class="extype" name="scala.collection.parallel.IterableSplitter">IterableSplitter</a> <a href="../scala/collection/parallel/ParIterableLike.html" class="extype" name="scala.collection.parallel.ParIterableLike">ParIterableLike</a> <a href="../scala/collection/parallel/SeqSplitter.html" class="extype" name="scala.collection.parallel.SeqSplitter">SeqSplitter</a> <a href="../scala/concurrent/SyncVar.html" class="extype" name="scala.concurrent.SyncVar">SyncVar</a> </div>

244 </div><div class="entry">

245 <div class="name">take2combiner</div>

247 </div><div class="entry">

248 <div class="name">takeRight</div>

249 <div class="occurrences"><a href="../scala/collection/IndexedSeqOptimized.html" class="extype" name="scala.collection.IndexedSeqOptimized">IndexedSeqOptimized</a> <a href="../scala/collection/IterableLike.html" class="extype" name="scala.collection.IterableLike">IterableLike</a> <a href="../scala/collection/IterableProxyLike.html" class="extype" name="scala.collection.IterableProxyLike">IterableProxyLike</a> <a href="../scala/collection/IterableViewLike.html" class="extype" name="scala.collection.IterableViewLike">IterableViewLike</a> <a href="../scala/collection/immutable/List.html" class="extype" name="scala.collection.immutable.List">List</a> <a href="../scala/collection/immutable/Range.html" class="extype" name="scala.collection.immutable.Range">Range</a> <a href="../scala/collection/immutable/Stream.html" class="extype" name="scala.collection.immutable.Stream">Stream</a> <a href="../scala/collection/immutable/TreeMap.html" class="extype" name="scala.collection.immutable.TreeMap">TreeMap</a> <a href="../scala/collection/immutable/TreeSet.html" class="extype" name="scala.collection.immutable.TreeSet">TreeSet</a> <a href="../scala/collection/immutable/Vector.html" class="extype" name="scala.collection.immutable.Vector">Vector</a> </div>

250 </div><div class="entry">

251 <div class="name">takeSeq</div>

TestConfigurationInspector.java (https://github.com/ssindkar/platform.git) Java · 357 lines

21 import java.lang.annotation.RetentionPolicy;

22 import java.util.Iterator;

23 import java.util.List;

24 import java.util.Map;

25 import java.util.SortedSet;

26 import java.util.TreeMap;

27

28 import static com.google.common.base.MoreObjects.firstNonNull;

76 public void testSimpleConfig()

77 {

78 Map<String, String> properties = new TreeMap<>();

79 properties.put("string-value", "some value");

80 properties.put("boolean-value", "true");

ConfigurationFactoryTest.java (https://github.com/ssindkar/platform.git) Java · 1126 lines

30 import javax.validation.constraints.NotNull;

31 import java.util.Collections;

32 import java.util.HashMap;

34 import java.util.Map;

35 import java.util.TreeMap;

36

37 import static com.google.common.base.MoreObjects.firstNonNull;

421 public void testConfigurationDespiteDeprecatedConfig()

422 {

423 Map<String, String> properties = new TreeMap<>();

424 properties.put("string-b", "this is b");

425 TestMonitor monitor = new TestMonitor();

436 public void testConfigurationThroughDeprecatedConfig()

437 {

438 Map<String, String> properties = new TreeMap<>();

439 properties.put("string-a", "this is a");

440 properties.put("string-b", "this is b");

ICUCurrencyDisplayInfoProvider.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 279 lines

7 package com.ibm.icu.impl;

8

9 import java.lang.ref.SoftReference;

10 import java.util.Collections;

11 import java.util.HashMap;

12 import java.util.HashSet;

13 import java.util.Map;

14 import java.util.Set;

15 import java.util.TreeMap;

16

17 import com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo;

230 private Map<String, String> _createNameMap() {

231 // ignore case variants

232 Map<String, String> result = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER);

233

234 Set<String> visited = new HashSet<String>();

Channel.java (https://github.com/ViciousCake/Insane.git) Java · 536 lines

1 /*

2 * IRClib -- A Java Internet Relay Chat library -- class IRCConnection

3 * Copyright (C) 2002 - 2006 Christoph Schwering <schwering@gmail.com>

4 *

16 import org.schwering.irc.manager.event.*;

17

18 import java.util.*;

19

20 /**

34

35 private String name;

36 private SortedMap users = new TreeMap();

37 private Topic topic;

38 private List banIDs;

CypherReturnClauseBuilderTest.java (https://github.com/jhpoelen/eol-globi-data.git) Java · 490 lines

4 import org.junit.Test;

5

6 import java.util.TreeMap;

7

8 import static org.hamcrest.CoreMatchers.is;

297 public void multiTaxonDistinctByNameOnlyDuplicates() {

298 StringBuilder query = new StringBuilder();

299 TreeMap<String, String[]> parameterMap = new TreeMap<String, String[]>() {

300 {

301 put("field", new String[]{

317 public void multiTaxonSexLabelsIds() {

318 StringBuilder query = new StringBuilder();

319 TreeMap<String, String[]> parameterMap = new TreeMap<String, String[]>() {

320 {

321 put("field", new String[]{

Coarbitrary.java (https://github.com/rafalrusin/functionaljava.git) Java · 1176 lines

36 import java.sql.Time;

37 import java.sql.Timestamp;

38 import java.util.ArrayList;

49 import java.util.LinkedHashMap;

50 import java.util.LinkedHashSet;

51 import java.util.LinkedList;

54 import java.util.Stack;

55 import java.util.TreeMap;

56 import java.util.TreeSet;

768 * @return A coarbitrary for tree maps.

769 */

770 public static <K, V> Coarbitrary<TreeMap<K, V>> coarbTreeMap(final Coarbitrary<K> ck, final Coarbitrary<V> cv) {

771 return new Coarbitrary<TreeMap<K, V>>() {

969 // BEGIN java.sql

970

971 public static final Coarbitrary<java.sql.Date> coarbSQLDate = new Coarbitrary<java.sql.Date>() {

972 public <B> Gen<B> coarbitrary(final java.sql.Date d, final Gen<B> g) {

Arbitrary.java (https://github.com/rafalrusin/functionaljava.git) Java · 1188 lines

47 import java.math.BigInteger;

48 import java.sql.Time;

49 import java.sql.Timestamp;

50 import java.util.ArrayList;

51 import java.util.BitSet;

59 import java.util.Hashtable;

60 import java.util.IdentityHashMap;

61 import java.util.LinkedHashMap;

64 import java.util.Locale;

65 import static java.util.Locale.getAvailableLocales;

66 import java.util.PriorityQueue;

68 import java.util.Stack;

69 import java.util.TreeMap;

70 import java.util.TreeSet;

data_structures.clj (https://github.com/warn4n/clojure.git) Clojure · 862 lines

149 (java.util.ArrayList. [1 2 3]) 3

150

151 (java.util.HashMap. {}) 0

152 (java.util.HashMap. {:a 1}) 1

399 (contains? #{1 2 3} nil) false)

400

401 ; contains? also works on java.util.Map and java.util.Set.

402 (are [x y] (= x y)

403 (contains? (java.util.HashMap. {}) :a) false

411 (contains? (java.util.HashMap. {:a 1 :b 2}) :b) true

412 (contains? (java.util.HashMap. {:a 1 :b 2}) :c) false

413 (contains? (java.util.HashMap. {:a 1 :b 2}) nil) false

420 (contains? (java.util.HashSet. #{1}) 2) false

421 (contains? (java.util.HashSet. #{1}) nil) false

422

423 (contains? (java.util.HashSet. #{1 2 3}) 1) true

KindTreeMapper.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 45 lines ✨ Summary

This Java class, KindTreeMapper, is a custom mapper for generating tree paths based on tag kinds. It extends an abstract class and provides a method to add the kind of a given Tag object to a vector representing the path. The class also implements the IObjectProcessor interface, allowing it to be cloned.

18

19 package ctags.sidekick.mappers;

20 import java.util.Vector;

21

22 import ctags.sidekick.IObjectProcessor;

23 import ctags.sidekick.Tag;

24

25 public class KindTreeMapper extends AbstractTreeMapper {

26

27 private static final String NAME = "Kind";

29 "Adds the tag kind to the tree path.";

30

31 public KindTreeMapper() {

32 super(NAME, DESCRIPTION);

33 }

data_structures.clj (https://github.com/kurtharriger/clojure.git) Clojure · 835 lines

145 (into-array [1 2 3]) 3

146

147 (java.util.ArrayList. []) 0

148 (java.util.ArrayList. [1]) 1

149 (java.util.ArrayList. [1 2 3]) 3

150

151 (java.util.HashMap. {}) 0

152 (java.util.HashMap. {:a 1}) 1

153 (java.util.HashMap. {:a 1 :b 2 :c 3}) 3 ))

399 (contains? #{1 2 3} nil) false)

400

401 ; numerically indexed collections (e.g. vectors and Java arrays)

402 ; => test if the numeric key is WITHIN THE RANGE OF INDEXES

403 (are [x y] (= x y)

TermOrderOptimization.java (https://github.com/ancsing/ggw.git) Java · 535 lines

1 /*

2 * $Id: TermOrderOptimization.java 3210 2010-07-05 12:25:27Z kredel $

3 */

4

5 package edu.jas.poly;

6

7 import java.util.List;

8 import java.util.ArrayList;

9 import java.util.Collection;

10 import java.util.Arrays;

12 import java.util.SortedMap;

13 import java.util.TreeMap;

14

15 import org.apache.log4j.Logger;

PolyUtilApp.java (https://github.com/ancsing/ggw.git) Java · 1244 lines

8 import java.util.Arrays;

9 import java.util.Map;

10 import java.util.List;

11 import java.util.ArrayList;

12 import java.util.SortedMap;

13 import java.util.TreeMap;

14 import java.util.HashMap;

15 import java.util.Set;

16 import java.util.TreeSet;

82 C c, ExpVector e ) {

83 SortedMap<Integer,GenPolynomial<C>> elem

84 = new TreeMap<Integer,GenPolynomial<C>>();

85 for ( int i = 0; i < e.length(); i++ ) {

86 RingFactory<GenPolynomial<C>> rfac = pfac.getFactory(i);

Product.java (https://github.com/ancsing/geogebra.git) Java · 755 lines

9 import java.util.SortedMap;

10 import java.util.TreeMap;

11

12 import org.apache.log4j.Logger;

269

270 /** Comparison with any other object.

271 * @see java.lang.Object#equals(java.lang.Object)

272 */

273 @SuppressWarnings("unchecked")

323 */

324 public Product<C> abs() {

325 SortedMap<Integer,C> elem = new TreeMap<Integer,C>();

326 for ( Integer i : val.keySet() ) {

327 C v = val.get(i).abs();

498 }

499 int isu = 0;

500 SortedMap<Integer,C> elem = new TreeMap<Integer,C>();

501 for ( int i = 0; i < ring.length(); i++ ) {

502 C v = val.get( i );

Maps.java (https://github.com/revolsys/com.revolsys.open.git) Java · 982 lines

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.Collections;

6 import java.util.Comparator;

7 import java.util.HashMap;

8 import java.util.LinkedHashMap;

9 import java.util.LinkedHashSet;

12 import java.util.Map.Entry;

13 import java.util.Properties;

14 import java.util.Set;

15 import java.util.TreeMap;

16 import java.util.TreeSet;

BPlusTreeMap.java (https://github.com/revolsys/com.revolsys.open.git) Java · 682 lines

89 .newPageValueManager(pageManager, valueSerializer);

90 final Comparator<Integer> comparator = Comparators.newComparator();

91 final BPlusTreeMap<Integer, V> map = new BPlusTreeMap<>(pageManager, comparator, keyManager,

92 valueManager);

93 map.putAll(values);

123

124 final Comparator<K> comparator = (o1, o2) -> ((Comparable<Object>)o1).compareTo(o2);

125 final BPlusTreeMap<K, V> map = new BPlusTreeMap<>(pageManager, comparator, keyManager,

126 valueManager);

127 map.putAll(values);

146

147 final Comparator<K> comparator = Comparators.newComparator();

148 final BPlusTreeMap<K, V> map = new BPlusTreeMap<>(pageManager, comparator, keyManager,

149 valueManager);

150 return map;

Contabilidade.java (https://gitlab.com/andrerfcsantos/GesthiperJava) Java · 368 lines

1 package lei.li3.g50.modulos.contabilidade;

2

3 import java.io.Serializable;

4 import java.util.ArrayList;

5 import java.util.List;

6 import java.util.Map;

7 import java.util.Objects;

8 import java.util.TreeMap;

9 import java.util.TreeSet;

26 private Matriz_Int_12x2 totalUnidadesVendidasPorMes;

27 private Matriz_Double_12x2 totalFacturadoPorMes;

28 private TreeMap<Produto, FichaProdutoContabilidade> arvoreProdutos;

29

30 /*

100 public TreeMap<Produto, FichaProdutoContabilidade> getArvoreProdutos() {

101 TreeMap<Produto, FichaProdutoContabilidade> tmp = new TreeMap<>();

102

103 for (Map.Entry<Produto, FichaProdutoContabilidade> tuplo : this.arvoreProdutos.entrySet()) {

Compras.java (https://gitlab.com/andrerfcsantos/GesthiperJava) Java · 433 lines

1 package lei.li3.g50.modulos.compras;

2

3 import java.io.Serializable;

4 import java.util.ArrayList;

5 import java.util.Arrays;

6 import java.util.TreeMap;

7 import java.util.List;

8 import java.util.Map;

9 import java.util.Objects;

10 import java.util.TreeMap;

11 import java.util.TreeSet;

159 public Map<Mes, Integer> getNumeroClientesDistintosMeses() {

160 Mes mes;

161 TreeMap<Mes, Integer> resultado = new TreeMap<>();

162

163 for (int i = 0; i < 12; i++) {

Compras.java (https://gitlab.com/andrerfcsantos/GesthiperJava) Java · 433 lines

1 package lei.li3.g50.modulos.compras;

2

3 import java.io.Serializable;

4 import java.util.ArrayList;

5 import java.util.Arrays;

6 import java.util.HashMap;

9 import java.util.Objects;

10 import java.util.TreeMap;

11 import java.util.TreeSet;

159 public Map<Mes, Integer> getNumeroClientesDistintosMeses() {

160 Mes mes;

161 TreeMap<Mes, Integer> resultado = new TreeMap<>();

162

163 for (int i = 0; i < 12; i++) {

TreemapState.java (https://github.com/yulewei/p_vis.git) Java · 1118 lines

1 package edu.zjut.treemap.core;

2

3 import java.util.ArrayList;

4 import java.util.Collection;

5 import java.util.HashMap;

6 import java.util.List;

7 import java.util.Map;

9 import edu.zjut.common.data.attr.DataField;

10 import edu.zjut.common.data.attr.FieldType;

11 import edu.zjut.treemap.hive.Expression;

12 import edu.zjut.treemap.hive.ExpressionNotSupportedException;

13 import edu.zjut.treemap.hive.Hive;

14 import edu.zjut.treemap.hive.Path;

LayoutSetWrapper.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 662 lines

17 import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;

18

19 import java.util.Date;

20 import java.util.HashMap;

21 import java.util.Map;

22

23 /**

419 */

420 @Override

421 public java.util.TreeMap<String, String> getVirtualHostnames() {

422 return model.getVirtualHostnames();

423 }

651 */

652 @Override

653 public void setVirtualHostnames(java.util.TreeMap virtualHostnames) {

654 model.setVirtualHostnames(virtualHostnames);

655 }

LayoutConverterTest.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 1243 lines

54 import java.util.Collections;

55 import java.util.Comparator;

56 import java.util.HashMap;

60 import java.util.Set;

61 import java.util.TreeMap;

62

63 import org.junit.After;

220 }

221 ).build();

222 Map<String, String[]> portletIdsMap3 = TreeMapBuilder.put(

223 "column-1",

224 new String[] {

308 }

309 ).build();

310 Map<String, String[]> portletIdsMap2 = TreeMapBuilder.put(

311 "column-1",

312 new String[] {

TestTransition.java (https://bitbucket.org/kzm123/io2013.git) Java · 622 lines

2

3

4 import java.io.UnsupportedEncodingException;

5 import java.lang.reflect.InvocationTargetException;

6 import java.lang.reflect.Method;

7 import java.util.List;

8 import java.util.TreeMap;

9

10 import agh.io.vanillaforums.R;

398

399

400 private static TreeMap<String, MethodInfo> __methodsInfo = new TreeMap<String, MethodInfo>();

401 static{

402 MethodInfo m;

MetricsRegistry.java (https://github.com/jmhodges/metrics.git) Java · 519 lines

3 import com.yammer.metrics.core.Histogram.SampleType;

4

5 import java.util.*;

6 import java.util.concurrent.*;

349 public SortedMap<String, SortedMap<MetricName, Metric>> getGroupedMetrics(MetricPredicate predicate) {

350 final SortedMap<String, SortedMap<MetricName, Metric>> groups =

351 new TreeMap<String, SortedMap<MetricName, Metric>>();

352 for (Map.Entry<MetricName, Metric> entry : metrics.entrySet()) {

353 final String qualifiedTypeName = entry.getKey().getGroup() + "." + entry.getKey()

362 SortedMap<MetricName, Metric> group = groups.get(scopedName);

363 if (group == null) {

364 group = new TreeMap<MetricName, Metric>();

365 groups.put(scopedName, group);

366 }

JdbcHelper.java (https://github.com/geoserver/geoserver.git) Java · 563 lines

11 import java.util.ArrayList;

12 import java.util.Collection;

13 import java.util.Iterator;

15 import java.util.SortedMap;

16 import java.util.TreeMap;

17 import org.geoserver.smartdataloader.domain.entities.DomainRelationType;

18 import org.geoserver.smartdataloader.metadata.AttributeMetadata;

81 DatabaseMetaData metaData, List<JdbcTableMetadata> tables) throws Exception {

82 if (tables != null) {

83 SortedMap<EntityMetadata, JdbcPrimaryKeyConstraintMetadata> pkMap = new TreeMap<>();

84 for (EntityMetadata table : tables) {

85 JdbcPrimaryKeyConstraintMetadata primaryKey =

329 indexMultimap.put(indexConstraint.toString(), indexColumnName);

330 } while (indexColumns.next());

331 SortedMap<String, Collection<String>> indexMap = new TreeMap<>();

332 indexMap.putAll(indexMultimap.asMap());

333 return indexMap;

BasicGenomeWideCombinableDomains.java (https://github.com/stamatak/EPA-WorkBench.git) Java · 365 lines

2 package org.forester.surfacing;

3

4 import java.text.DecimalFormat;

5 import java.text.NumberFormat;

6 import java.util.ArrayList;

7 import java.util.Collections;

8 import java.util.Comparator;

9 import java.util.HashMap;

10 import java.util.HashSet;

11 import java.util.List;

12 import java.util.Map;

13 import java.util.Set;

15 import java.util.SortedSet;

16 import java.util.TreeMap;

17 import java.util.TreeSet;

TypedBytesInput.java (https://github.com/steeve/hive.git) Java · 533 lines

19 package org.apache.hadoop.hive.contrib.util.typedbytes;

20

21 import java.io.DataInput;

22 import java.io.EOFException;

23 import java.io.IOException;

24 import java.util.ArrayList;

25 import java.util.List;

26 import java.util.TreeMap;

27

28 import org.apache.hadoop.io.WritableUtils;

493 public TreeMap readMap() throws IOException {

494 int length = readMapHeader();

495 TreeMap result = new TreeMap();

496 for (int i = 0; i < length; i++) {

497 Object key = read();

StringResourcesTest.java (https://gitlab.com/smartether/buck) Java · 303 lines

26 import org.junit.Test;

27

28 import java.io.ByteArrayInputStream;

29 import java.io.DataInputStream;

31 import java.util.EnumMap;

32 import java.util.TreeMap;

33

34

115 @Test

116 public void testBinaryStream() throws IOException {

117 TreeMap<Integer, EnumMap<Gender, String>> stringsMap = Maps.newTreeMap();

118 stringsMap.putAll(strings);

119 TreeMap<Integer, EnumMap<Gender, ImmutableMap<String, String>>> pluralsMap = Maps.newTreeMap();

120 pluralsMap.putAll(plurals);

121 TreeMap<Integer, EnumMap<Gender, ImmutableList<String>>> arraysMap = Maps.newTreeMap();

122 arraysMap.putAll(arrays);

123 byte[] binaryOutput = new StringResources(stringsMap, pluralsMap, arraysMap)

VertexStatsRecorderUnitTest.java (https://github.com/massimo-nocentini/my-undergraduatethesis-java.git) Java · 689 lines

1 package model;

2

3 import java.io.File;

4 import java.io.FileNotFoundException;

5 import java.io.FileWriter;

6 import java.io.IOException;

7 import java.io.Writer;

8 import java.util.HashMap;

9 import java.util.Locale;

10 import java.util.Map;

12 import java.util.SortedMap;

13 import java.util.TreeMap;

14

15 import javax.xml.stream.XMLStreamException;

PolyUtil.java (https://bitbucket.org/axelclk/symja_android_library.git) Java · 1285 lines

9 import java.util.List;

10 import java.util.Map;

11 import java.util.SortedMap;

12 import java.util.TreeMap;

13

14 import org.apache.logging.log4j.LogManager;

241 Object[] result = new Object[3];

242 if (A == null || A.isZERO()) {

243 result[0] = java.math.BigInteger.ONE;

244 result[1] = java.math.BigInteger.ZERO;

295 */

296 public static GenPolynomial<BigInteger> integerFromRationalCoefficients(GenPolynomialRing<BigInteger> fac,

297 java.math.BigInteger gcd, java.math.BigInteger lcm, GenPolynomial<BigRational> A) {

298 //System.out.println("gcd = " + gcd + ", lcm = " + lcm);

299 GenPolynomial<BigInteger> Ai = PolyUtil.<BigRational, BigInteger> map(fac, A,

JSort.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 528 lines ✨ Summary

This Java code implements a custom sorting algorithm for strings based on specific criteria defined by the SortBy class. It allows users to specify which characters in a string should be considered when sorting, such as ignoring case, trimming whitespace, and handling numeric values. The sorted strings are then compared character by character according to the specified rules.

2 * :folding=explicit:collapseFolds=1:

3 *

4 * JSort.java - a class to sort sets

5 * Copyright (c) 2002 Carmine Lucarelli (carmine.lucarelli@rogers.com)

6 *

22

23 //{{{ imports

24 import java.util.*;

25 import org.gjt.sp.jedit.BeanShell;

26 import org.gjt.sp.util.Log;

271 //{{{ compare(Object, Object)

272 /**

273 * Implemenation of java.util.Comparator used in creating a sorted

274 * collection (TreeMap implementation). Will also delete duplicates

DefaultPluginResolver.java (http://mycila.googlecode.com/svn/) Java · 146 lines ✨ Summary

This Java class implements a plugin resolver for a plugin-based system. It provides methods to retrieve plugins, check if a plugin exists, and resolve dependencies between plugins. The resolver uses a cache to store plugin bindings and detects cycles in the dependency graph to prevent cyclic dependencies. It returns sorted sets of plugins and their dependencies, allowing for efficient management of the plugin ecosystem.

25 import org.jgrapht.traverse.TopologicalOrderIterator;

26

27 import java.util.*;

28

29 /**

55

56 public SortedMap<String, SortedSet<String>> getMissingDependenciesByPlugin() {

57 SortedMap<String, SortedSet<String>> allMiss = new TreeMap<String, SortedSet<String>>();

58 SortedSet<PluginBinding<T>> plugins = getPlugins();

59 Set<String> loadedPlugins = new HashSet<String>(plugins.size());

130 CycleDetector<String, DefaultEdge> detector = new CycleDetector<String, DefaultEdge>(graph);

131 if (detector.detectCycles()) {

132 SortedMap<String, Plugin> cyclics = new TreeMap<String, Plugin>();

133 for (String pluginName : detector.findCycles()) {

134 cyclics.put(pluginName, getPlugin(pluginName));

ParsedData.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 182 lines ✨ Summary

This Java code is part of a Ctags Sidekick application, which maps tags from a source file to their corresponding locations in a text editor. It creates a tree-like data structure to represent the tag hierarchy and provides methods for adding tags, sorting the tree, and displaying it in the editor. The code uses various comparators to determine the order of nodes in the tree based on different criteria such as node names or child counts.

18

19 package ctags.sidekick;

20 import java.util.Collections;

21 import java.util.Comparator;

22 import java.util.Enumeration;

23 import java.util.Vector;

24

25 import javax.swing.tree.DefaultMutableTreeNode;

26

27 import org.gjt.sp.jedit.jEdit;

32 public class ParsedData extends SideKickParsedData

33 {

34 ITreeMapper mapper = null;

35 Comparator<CtagsSideKickTreeNode> sorter = null;

36 CtagsSideKickTreeNode tree = new CtagsSideKickTreeNode();