• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 14752386992

30 Apr 2025 10:25AM UTC coverage: 64.96% (-0.1%) from 65.095%
14752386992

push

github

web-flow
TRUNK-6316 Upgrade Hibernate Search to 6.2.4 (#5005)

501 of 591 new or added lines in 24 files covered. (84.77%)

21 existing lines in 6 files now uncovered.

23344 of 35936 relevant lines covered (64.96%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/org/openmrs/collection/ListPart.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.collection;
11

12
import java.util.Collection;
13
import java.util.List;
14

15
/**
16
 * It is a wrapper for a partial list, which stores additional info about the current part and the
17
 * whole.
18
 * 
19
 * @since 1.11
20
 */
21
public class ListPart<E> extends CollectionPart<E> {
22
        
23
        private final List<E> list;
24
        
25
        /**
26
         * @param list
27
         * @param firstElement
28
         * @param maxElements
29
         * @param totalElements
30
         */
31
        public ListPart(List<E> list, Long firstElement, Long maxElements, Long totalElements, Boolean totalElementsExact) {
UNCOV
32
                super(list, firstElement, maxElements, totalElements, totalElementsExact);
×
UNCOV
33
                this.list = list;
×
UNCOV
34
        }
×
35
        
36
        @Override
37
        public Collection<E> getCollection() {
38
                return list;
×
39
        }
40
        
41
        public List<E> getList() {
UNCOV
42
                return list;
×
43
        }
44
        
45
        public static <T> ListPart<T> newListPart(List<T> list, Long firstElement, Long maxElements, Long totalElements,
46
                Boolean totalElementsExact) {
UNCOV
47
                return new ListPart<>(list, firstElement, maxElements, totalElements, totalElementsExact);
×
48
        }
49
        
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc