@@ -23,15 +23,15 @@ public static <U> DocumentSnapshotMapper<DocumentSnapshot, U> of(Class<U> clazz)
23
23
}
24
24
25
25
public static <U > DocumentSnapshotMapper <QuerySnapshot , List <U >> listOf (Class <U > clazz ) {
26
- return new DocumentSnapshotMapper . TypedListDocumentSnapshotMapper <>(clazz );
26
+ return new TypedListQuerySnapshotMapper <>(clazz );
27
27
}
28
28
29
29
public static <U > DocumentSnapshotMapper <QuerySnapshot , List <U >> listOf (Class <U > clazz , Function <DocumentSnapshot , U > mapper ) {
30
- return new DocumentSnapshotMapper . TypedListDocumentSnapshotMapper <>(clazz , mapper );
30
+ return new TypedListQuerySnapshotMapper <>(clazz , mapper );
31
31
}
32
32
33
- public static <U > TypedMapDocumentSnapshotMapper <U > mapOf (Class <U > clazz ) {
34
- return new DocumentSnapshotMapper . TypedMapDocumentSnapshotMapper <>(clazz );
33
+ public static <U > TypedMapQuerySnapshotMapper <U > mapOf (Class <U > clazz ) {
34
+ return new TypedMapQuerySnapshotMapper <>(clazz );
35
35
}
36
36
37
37
private static <U > U getDataSnapshotTypedValue (DocumentSnapshot documentSnapshot , Class <U > clazz ) {
@@ -52,16 +52,16 @@ public U apply(final DocumentSnapshot documentSnapshot) {
52
52
}
53
53
}
54
54
55
- private static class TypedListDocumentSnapshotMapper <U > extends DocumentSnapshotMapper <QuerySnapshot , List <U >> {
55
+ private static class TypedListQuerySnapshotMapper <U > extends DocumentSnapshotMapper <QuerySnapshot , List <U >> {
56
56
57
57
private final Class <U > clazz ;
58
58
private final Function <DocumentSnapshot , U > mapper ;
59
59
60
- TypedListDocumentSnapshotMapper (final Class <U > clazz ) {
60
+ TypedListQuerySnapshotMapper (final Class <U > clazz ) {
61
61
this (clazz , null );
62
62
}
63
63
64
- TypedListDocumentSnapshotMapper (final Class <U > clazz , Function <DocumentSnapshot , U > mapper ) {
64
+ TypedListQuerySnapshotMapper (final Class <U > clazz , Function <DocumentSnapshot , U > mapper ) {
65
65
this .clazz = clazz ;
66
66
this .mapper = mapper ;
67
67
}
@@ -79,11 +79,11 @@ public List<U> apply(final QuerySnapshot querySnapshot) throws Exception {
79
79
}
80
80
81
81
82
- private static class TypedMapDocumentSnapshotMapper <U > extends DocumentSnapshotMapper <QuerySnapshot , LinkedHashMap <String , U >> {
82
+ private static class TypedMapQuerySnapshotMapper <U > extends DocumentSnapshotMapper <QuerySnapshot , LinkedHashMap <String , U >> {
83
83
84
84
private final Class <U > clazz ;
85
85
86
- TypedMapDocumentSnapshotMapper (final Class <U > clazz ) {
86
+ TypedMapQuerySnapshotMapper (final Class <U > clazz ) {
87
87
this .clazz = clazz ;
88
88
}
89
89
@@ -100,7 +100,7 @@ public LinkedHashMap<String, U> apply(final QuerySnapshot querySnapshot) {
100
100
static final Predicate <QuerySnapshot > QUERY_EXISTENCE_PREDICATE = new Predicate <QuerySnapshot >() {
101
101
@ Override
102
102
public boolean test (@ NonNull QuerySnapshot querySnapshot ) throws Exception {
103
- return querySnapshot .isEmpty ();
103
+ return ! querySnapshot .isEmpty ();
104
104
}
105
105
};
106
106
0 commit comments