Code examples for LinkedHashSet

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
175:	LinkedHashSet<String> recentlyUsed = new LinkedHashSet<String>(getRecentlyUsed(context)); 
176:	recentlyUsed.add(asset); 
-
178:	if (recentlyUsed.size() > 10) { 
179:	Iterator<String> iterator = recentlyUsed.iterator(); 
-
184:	String serialized = new Gson().toJson(recentlyUsed); 
Full Snippet Info
9
CodeRank
238:	Set<byte[]> bexpected = new LinkedHashSet<byte[]>(); 
239:	bexpected.add(bbar); 
240:	bexpected.add(bcar); 
241:	assertEquals(bexpected, bkeys); 
Full Snippet Info
9
CodeRank
83:	final Set<OIdentifiable> values = new LinkedHashSet<OIdentifiable>(); 
-
86:	values.add(storedValue.getIdentity()); 
-
88:	values.add(value.getIdentity()); 
-
90:	snapshot.put(key, values); 
Full Snippet Info
8
CodeRank
132:	Set<String> expected = new LinkedHashSet<String>(); 
133:	expected.add("b"); 
-
136:	assertEquals(expected, jedis.zrange("foo", 0, 100)); 
Full Snippet Info
8
CodeRank
214:	Set<Resource> actualResources = new LinkedHashSet<Resource>(4); 
-
229:	int importCount = getReaderContext().getReader().loadBeanDefinitions(location, actualResources); 
-
246:	actualResources.add(relativeResource); 
-
250:	importCount = getReaderContext().getReader().loadBeanDefinitions( 
-
265:	Resource[] actResArray = actualResources.toArray(new Resource[actualResources.size()]); 
Full Snippet Info
8
CodeRank
46:	private final Set<String> scannedJndiComponentResources = new LinkedHashSet<String>(); 
Full Snippet Info
8
CodeRank
75:	return findAll(cl, new LinkedHashSet<T>()); 
Full Snippet Info
7
CodeRank
34:	private final Set<String> missingRequiredProperties = new LinkedHashSet<String>(); 
Full Snippet Info
7
CodeRank
104:	Set set = new LinkedHashSet<>(3); 
105:	set.add(s1); 
106:	set.add(s2); 
107:	set.add(s3); 
108:	String str = new ToStringCreator(this).append("myLetters", set).toString(); 
Full Snippet Info
7
CodeRank
195:	private volatile Set<String> specific = new LinkedHashSet<String>(); 
Full Snippet Info
7
CodeRank
86:	return findAll(cl, new LinkedHashSet<T>()); 
Full Snippet Info
7
CodeRank
37:	private final Set<Iterator<E>> iterators = new LinkedHashSet<Iterator<E>>(); 
Full Snippet Info
7
CodeRank
50:	Set<IModelElement> children = new LinkedHashSet<IModelElement>( 
-
52:	return children.toArray(new IModelElement[children.size()]); 
Full Snippet Info
7
CodeRank
79:	Set<TransportHandler> result = new LinkedHashSet<TransportHandler>(8); 
80:	result.add(new XhrPollingTransportHandler()); 
81:	result.add(new XhrReceivingTransportHandler()); 
82:	result.add(new XhrStreamingTransportHandler()); 
83:	result.add(new JsonpPollingTransportHandler()); 
84:	result.add(new JsonpReceivingTransportHandler()); 
85:	result.add(new EventSourceTransportHandler()); 
86:	result.add(new HtmlFileTransportHandler()); 
-
88:	result.add(new WebSocketTransportHandler(new DefaultHandshakeHandler())); 
-
97:	result.addAll(overrides); 
Full Snippet Info
7
CodeRank
85:	final LinkedHashSet<String> keys = new LinkedHashSet<String>(); 
86:	keys.addAll(Arrays.asList(backend.getDefinedOptions(url))); 
87:	keys.addAll(Arrays.asList(data.getDefinedOptions())); 
88:	return keys.toArray(new String[keys.size()]); 
Full Snippet Info
7
CodeRank
34:	private Set<Object>        context = new LinkedHashSet<Object>(); 
Full Snippet Info
7
CodeRank
173:	final LinkedHashSet<String> fields = new LinkedHashSet<String>(Arrays.asList(super.getReferencedFields(query, parameter))); 
174:	fields.addAll(Arrays.asList(additionalFields)); 
175:	return fields.toArray(new String[fields.size()]); 
Full Snippet Info
7
CodeRank
32:	private Set<String> mappings = new LinkedHashSet<String>(); 
Full Snippet Info
7
CodeRank
40:	Set<String> obj = new LinkedHashSet<String>(); 
41:	obj.add("123"); 
Full Snippet Info
7
CodeRank
34:	Set<Parameter<?>> result = new LinkedHashSet<Parameter<?>>(); 
35:	result.add(new ImmutableParameter(new DefaultParameter("*").constrainedBy(new RegexConstraint(".*")))); 
Full Snippet Info
7
CodeRank