Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void showAllUserLoans(){
- myFinal.clear();
- allStar = servletMethods.getAllLogEntriesForAllUser();
- allEquipments = servletMethods.getEquipment("IN_USE");
- for(UserLogEntries userLogEntries : allStar){
- Boolean isEmpty = userLogEntries.getLogEntries().isEmpty();
- if (!isEmpty) {
- List<LogEntry> temp = userLogEntries.getLogEntries();
- for (LogEntry logEntry : temp) {
- int equipment_id = logEntry.getE_id();
- for (Equipment equipment : allEquipments) {
- if (equipment_id == equipment.getE_id()) {
- CombinedEquipment test = new CombinedEquipment(equipment_id, userLogEntries.getUser(), equipment, logEntry.getOut(), logEntry.getIn(), logEntry.getComment());
- myFinal.add(test);
- }
- }
- }
- }
- }
- if(myFinal.size()!=0) {
- customListAdapterMyLoans customListAdapter = new customListAdapterMyLoans(this.getActivity(), myFinal,index);
- setListAdapter(customListAdapter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement