collections
First-in-first-out collection with maximum size and no duplication?
.NET seems to have a lot of data structure and collection types. Does it have a first-in-first-out collection with a maximum size and no duplication, or something similar to that?[详细]
2023-04-05 19:10 分类:问答Can I assign Java values from an ArrayList to different variables without hardcoding the size?
I have an ArrayList, and we\'ll say it can be at most size 5. I want to assign the first element to var1, the second to var2, the third to var3, etc.[详细]
2023-04-05 17:45 分类:问答Mongo DB best practice for a query WHERE IN with tags and childs
Well i\'m planning a collection schema and i have dubt to how embed data inside tag field. i have a colletion named products:[详细]
2023-04-05 13:14 分类:问答how to customize plone 4 collection to sort by multiple fields
I\'m building a Plone 4.1 based site and am trying to find the best way to either sort a collection by multiple sort criteria, or at least customize a collection portlet to do so for the font page of[详细]
2023-04-05 12:49 分类:问答InvalidOperationException VB.Net Generic Collection?
I know its generally a big No-No to modify a collection that you are iterating through but unfortunately i didn\'t design the code that i\'m trying to modify. All over the place the following is done:[详细]
2023-04-05 10:39 分类:问答Removing items from Hashtable in a loop
Is there a better way to remove multiple items from a ha开发者_如何转开发sh table based on a condition, other than saving the keys first in a list and then iterating through that and removing each ite[详细]
2023-04-05 08:02 分类:问答Rework custom collection to use whatever object
I have some code I always use to make collections of my object. This code and be used like 10 times in some of my project with the object replaced.[详细]
2023-04-05 07:31 分类:问答Implementing IComparable using Framework 2.0
I am开发者_JAVA百科 trying to refactor the below code for the 2.0 framework (required at work). The below code was kindly provided per a previous post in which I was trying to figure out how to sort a[详细]
2023-04-05 06:45 分类:问答Type-safe flattening of nested collections/structures in Java
I would like to flatten arbitrary deeply nested collections/structures of elements of some type T in Java, optimally with[详细]
2023-04-05 06:06 分类:问答Regarding Sorting MultiDimensional Arrays in C#
I am trying to figure out a way to correctly sort a bunch of different arraylists. I am publishing content articles and every value [0] in an arraylist will relate to every other value [0]. and so on[详细]
2023-04-05 03:23 分类:问答