Most voted "collection" questions
A Collection object represents a generic grouping of simple objects.
Learn more…81 questions
Sort by count of
-
0
votes0
answers92
viewsIs there a restriction of jsf 2.2.5 with the Collection interface?
I am running an application with jsf 2.2.5. I used the component h:dataTable to display an object collection on the screen. I added this two component h:commandLink, one that must execute an editing…
-
0
votes2
answers494
viewsSave data group in Post method
I’m using the Begincollectionitem to save a list of data in my add method. For that, I created a ViewModel with the main data to the list I want to save, in the method POST. I own the ViewModel…
-
0
votes1
answer71
viewsEqual inputs different outputs in Java
I’m going through a problem I can’t visualize solution. I’ll try to describe what I’m doing, it’s a lot of code files, so here’s the thing. I’m combining access policies. I have a certain policy…
-
0
votes1
answer60
viewsSpring’s Bind with Collections
I haven’t been able to find a solution on how to resolve this issue yet, after researching and researching I found something on how I can bind elements of my form to a Collection in a POJO. But…
-
0
votes1
answer99
viewsCollection of objects c#
Galera need to fill a list that is inside another list, but is giving error. Follows the code: Promotora = new LojaPromotoraInfo { CodGerente = DBUtil.GetValor<string>(oRow, "CodGerente"),…
-
0
votes1
answer166
viewsProblem adding an element to a collection at runtime
In this my method I must fill a Collection, regardless of its type public void loadBeanCollectionItems(B bean, Collection collection, JSONArray collectionJson) { for(int index = 0; index <…
-
0
votes1
answer411
viewsWhat is the difference between parameterized class, multiobjects and Collections?
Well, I know the concepts of each one. I just don’t know how to tell them apart. For example, a parameterized class is a class that is used to define other classes, and a Collection can be…
-
0
votes1
answer286
viewsHow to make a findOneAndUpdate in an array within another array with Mongoose
I am beginner in Mongoose, I would like to make an amendment (findOneAndUpdate) in the second array address in the city field, I tried everything I knew and I thank nothing to everyone who can help.…
-
0
votes1
answer48
viewsC# is not finding/recognizing my List
I have a List made with the following code: List<frase> frases = new List<frase>(); According to the documentation of System.Collections.Generic, my code is right. But for some reason C#…
-
0
votes1
answer402
viewsHow to return data array with Join in Laravel with the DB class?
I need some help with that SQL of Laravel: $process = $db->table('processo')->where('nrprocesso',$id) ->leftJoin('viatransporte', function($viatransporte){…
-
0
votes2
answers1259
viewsSort Collection
I have a class called Object and within it possesses a Collection of Events, so to sum up: public class Objeto{ private Collection<Evento> eventos; } In the Event class, I have my attributes…
-
0
votes1
answer212
viewsJava Stream converter Map<String, Obj> to List<Obj>
I have this object filled: Map<String, List<LogLine>> logMap = new TreeMap<>(); And after I’ve made a filter, I’d like a flat list of it, but I can only create a list…
-
0
votes1
answer525
viewsI cannot recover a list of Firebase objects
I have a doubt that I did not find anywhere, I tested part and it worked with doubts and the other did not give. I will explain, if someone can help. The problem is this, if I have two classes…
-
0
votes0
answers551
viewsWhat is capped Collection?
Hello, I would like to know what is Limited Collection (Capped Collection) and for what we use in Mongodb.
-
0
votes1
answer27
viewsReflection c# WPF Observablecollection
I have a problem, when creating an Observablecollection I do so: ObservableCollection<MinhaClasse> Lista = new ObservableCollection<MinhaClasse>(); So far so good. My problem is, through…
-
0
votes1
answer45
viewsCollection:::Orders does not exist - Laravel
starting this topic by saying that I’m new to Laravel, but come on, I’m having a problem with Collection, is giving an error saying that it does not exist and that I made this connection in the…
-
0
votes1
answer432
viewsArraylist, Collections
I have an exercise list on Arraylist , but only the first question has left me with several doubts : Implement an interface with abstract methods getName, getValor, which should be implemented in…
-
0
votes1
answer710
viewsDoubt Exercicio Collections - Queue Interface
I’m having a question in this exercise about Collections in which I should use the Queue interface : Write a program that simulates control of an airfield at an airport. In this program, the user…
-
0
votes0
answers69
viewsDoubt about relationship implementation N:N using C#
I am having to make a relationship between classes N:N but storing objects in memory, follows the following relationship: I did the implementation as follows and I would like to know if it is…
-
0
votes1
answer126
viewsShuffle List
I would like to shuffle an Arraylist, and I’m trying to do this with Collections.Sort(), but I don’t think it’s happening The code I’m using is this: Thread t = new Thread(new Runnable() { @Override…
-
0
votes0
answers519
viewsGroup data - Laravel Collection
I need to group the data of an SQL function in Indicators and Data, but in my attempt to group, I’m only getting by date(Column), for this reason the data is repeated. Model: public static function…
-
0
votes1
answer62
viewsPrint contents of an object belonging to a Treeset (Collection)
I have a Treeset that will store several objects of a class "Products", this class has 3 attributes: int commodity; String descProduct; float precoProduct; After storing some "Product" objects in…
-
0
votes1
answer830
viewsError Mapping types. Mapping types: Icollection`1 -> List`1
I’m having a problem converting a List for ViewModel, using the ToListViewModel. Faturacontroller.Cs FaturaViewModel faturaViewModel = new FaturaViewModel(); faturaViewModel.mensagens = new…
-
0
votes0
answers127
viewsLaravel Project works in one location and does not work in another
Good evening, I am with a project being done in the Standard 5.8 and I have a certain problem, in short the project works in my work, but does not work at home. The point is, the project opens and…
-
0
votes1
answer490
viewsCatch a certain amount on a Foreach on the Blade
I wanted to know how I do to walk through a Collection and result a certain value? The Collection works like this and returned various values of employee appointments to be printed on the point,…
-
0
votes1
answer485
viewsSort using tie-breaker criteria
I need to sort a list of objects with the following criteria: Higher average proficiency levels in each of the technical competence required for the task; If the averages are equal, unpack for the…
-
0
votes1
answer81
viewsLaravel returns empty attributes in Edit method
I have another similar route working perfect, I do not know what I missed.. I thank anyone who can help me. Route: Route::get('/itensnfe/{itemnfe}/edit',…
-
0
votes0
answers43
viewsConfusing data output in CSV
I am new in Python and am learning to analyze and write CSV files. I’m stuck in a problem I haven’t been able to solve for a few days: I’m trying to read a government database, also in CSV, take…
-
-1
votes1
answer101
viewsCollection for stock use
What is the best implementation of the Collection interface for implementing a stock class? For example, a stock of supermarket products. My scenario is this:: A system of stock management of a…
-
-1
votes1
answer101
viewsCollection for stock use
What is the best implementation of the Collection interface for implementing a stock class? For example, a stock of supermarket products. My scenario is this:: A system of stock management of a…
-
-2
votes1
answer1111
viewsInserting Items in a Vb6 Collection
Good morning, you guys. The situation is as follows. I created a Type and it has its attributes. I would like to know how I do to insert data in a Collection (in Vb6). FOR EXAMPLE: I created Type…