Questions tagged as 'collection'

1
answer

Dictionarystring, string or NameValueCollection?

What's the difference in using Dictionary<string, string> and NameValueCollection ? I searched, but only found in English in the SOpt same, I used the translator, but the translation was strange and I did not understand.     
asked by 22.01.2018 / 02:58
1
answer

ICollection in Put WebApi method

I have the Put method in a WebApi Rest service // PUT: api/pessoas/5 [ResponseType(typeof(void))] public IHttpActionResult Putpessoa(int id, pessoa pessoa) { if (!ModelState.IsValid) {...
asked by 28.06.2017 / 12:38
1
answer

How to create a WeakHashSet / WeakSet in Java

The java.lang.ref package provides classes that model reference types in Java, such as Reference, SoftReferece, WeakReference, and PhantomReference.    Still do not know these references in Java? See this question:    Canonicalized Mapping an...
asked by 27.06.2015 / 23:05
0
answers

CRUD - LARAVEL 5.6

I'm developing a CRUD and in my controller I have the create function: public function create() { $neighborhood = new Neighborhood(); $city = new City(); return view( view: 'admin.cities.create', compact( varname: 'city', _:'neighb...
asked by 24.04.2018 / 03:13
1
answer

How do I automatically add labels to a UICollection in Swift?

In my application I was able to use the UICollection to display a horizontal scrolling "table" containing the purchase information of the client with header, but now I have another question, I need this table to be fed with each new password add...
asked by 17.11.2015 / 23:03
1
answer

ArrayList, Collections

I have a list of exercises on ArrayList, but only the first question has left me with several doubts: Implement an interface with abstract methods getNome, getValor, which should be implemented in the concrete Currency class. The currency cl...
asked by 30.08.2017 / 20:54
1
answer

C # is not finding / recognizing my List

I have List made with the following code: List<frase> frases = new List<frase>(); According to documentation of System.Collections.Generic my code is right. But for some reason C # is not finding List , wha...
asked by 07.07.2017 / 02:37
2
answers

Save data group in Post method

I'm using the BeginCollectionItem to save a list of data in my add method. For this, I created a ViewModel with the main data to the list that I want to save, in the POST method I have ViewModel TypePresitionVenueViewMod...
asked by 23.06.2015 / 14:31
1
answer

Java Stream convert MapString, Obj to ListObj

I have this object filled: Map<String, List<LogLine>> logMap = new TreeMap<>(); And after making a filter, I'd like a flat list of it, but I can only create list list List<List<LogLine>> foo = logMap.ent...
asked by 20.12.2017 / 09:00
1
answer

Duvida Exercises Collections - Interface Queue

Personal I have a question in this exercise about Collections where I should use the Queue interface: Write a program that simulates control of an airplane runway at an airport. In this program, the user must be able to perform the following...
asked by 12.09.2017 / 21:38