开发者

collections

0
  • Collection of an own datatype or HashMap

    I have to store information to objects of type \"Person\" in a data structure. The information could for example be a simple integer value. The integer values will change frequently, and also the pers[详细]

    2023-04-13 08:47 分类:问答
  • Converter with collection

    in WPF, in my XAML i have a dataGrid binded on a IEnumerable. The collection items have a proprety call开发者_开发知识库ed Sealed. To know if the order is sealed or not. So i\'ve made a converter to s[详细]

    2023-04-13 05:34 分类:问答
  • Android List<T> equivalent

    What is the Android equivalent to the C# List<T>?开发者_StackOverflow中文版 I have seen that java has List<T> in java.util but I can only seem to find the interface definition in Android[详细]

    2023-04-13 02:53 分类:问答
  • Java combination of Set and List interfaces

    I have a data structure, for which I am currently using an ArrayList. I realised that in this structure I do not want any duplicates to be present. My first thought was to use some form of set, howeve[详细]

    2023-04-13 01:35 分类:问答
  • How should I map string keys to values in Java in a memory-efficient way?

    I\'m looking for a way to store a string->int mapping. A HashMap is, of course, a most obvious solution, but as I\'m memory constrained and need to store 2 million pairs, 7 characters long keys, I nee[详细]

    2023-04-12 23:57 分类:问答
  • Java: Compact a HashMap (analogue of ArrayList#trimToSize)

    Is there开发者_运维问答 a way to compact a HashMap in the sense that you can with an ArrayList through its trimToSize() method?[详细]

    2023-04-12 21:36 分类:问答
  • Java Collections of Interfaces

    I\'m writing a small API to deal with objects that have specific \'traits\' In this case, they all have an interval of time and a couple of other bits of data, So I write an interface TimeInterval wit[详细]

    2023-04-12 21:17 分类:问答
  • Nhibernate lazy loading a set not working

    I\'m using nhibernate2.1 as part of spring.net 1.3.I have the following declaration as part of my mapping.My understanding is that this object should not load unless the getter is called.I have a brea[详细]

    2023-04-12 20:42 分类:问答
  • Unable to constrain generic type

    I can\'t figure out what\'s happening here. I\'m building a wrapper for a Dictionary collection. The idea is that, when the size of the collection is small, it will use a normal in-memory Dictionary;[详细]

    2023-04-12 17:56 分类:问答
  • Java, sort strings alphabetically without arrays

    So I have another assignment to do and the task is to assort 3 strings al开发者_开发技巧phabetically using the compareTo method. Basically the program receives 3 strings (a, b, and c) from a tester cl[详细]

    2023-04-12 16:13 分类:问答