File tree Expand file tree Collapse file tree 6 files changed +22
-14
lines changed
objectbox-java/src/main/java/io/objectbox/converter Expand file tree Collapse file tree 6 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
17
17
package io .objectbox .converter ;
18
18
19
19
/**
20
- * Used to automatically convert {@code Map<Integer, V>}.
20
+ * A {@link FlexObjectConverter} that uses {@link Integer} as map keys.
21
+ * <p>
22
+ * Used by default to convert {@code Map<Integer, V>}.
21
23
*/
22
24
public class IntegerFlexMapConverter extends FlexObjectConverter {
23
25
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import io .objectbox .flatbuffers .FlexBuffers ;
20
20
21
21
/**
22
- * Used to automatically convert {@code Map<Integer, Long> }.
22
+ * Like {@link IntegerFlexMapConverter}, but always restores integer map values as {@link Long}.
23
23
* <p>
24
- * Unlike {@link FlexObjectConverter} always restores integer map values as {@link Long}.
24
+ * Used by default to convert {@code Map<Integer, Long> }.
25
25
*/
26
26
public class IntegerLongMapConverter extends IntegerFlexMapConverter {
27
27
@ Override
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
17
17
package io .objectbox .converter ;
18
18
19
19
/**
20
- * Used to automatically convert {@code Map<Long, V>}.
20
+ * A {@link FlexObjectConverter} that uses {@link Long} as map keys.
21
+ * <p>
22
+ * Used by default to convert {@code Map<Long, V>}.
21
23
*/
22
24
public class LongFlexMapConverter extends FlexObjectConverter {
23
25
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import io .objectbox .flatbuffers .FlexBuffers ;
20
20
21
21
/**
22
- * Used to automatically convert {@code Map< Long, Long> }.
22
+ * Like {@link LongFlexMapConverter}, but always restores integer map values as {@link Long}.
23
23
* <p>
24
- * Unlike {@link FlexObjectConverter} always restores integer map values as {@link Long}.
24
+ * Used by default to convert {@code Map< Long, Long> }.
25
25
*/
26
26
public class LongLongMapConverter extends LongFlexMapConverter {
27
27
@ Override
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
17
17
package io .objectbox .converter ;
18
18
19
19
/**
20
- * Used to automatically convert {@code Map<String, V>}.
20
+ * A {@link FlexObjectConverter}.
21
+ * <p>
22
+ * Used by default to convert {@code Map<String, V>}.
21
23
*/
22
24
public class StringFlexMapConverter extends FlexObjectConverter {
23
25
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import io .objectbox .flatbuffers .FlexBuffers ;
20
20
21
21
/**
22
- * Used to automatically convert {@code Map<String, Long>}.
22
+ * Like {@link StringFlexMapConverter}, but always restores integer map values as {@link Long}.
23
+ * <p>
24
+ * Used by default to convert {@code Map<String, Long>}.
23
25
*/
24
26
public class StringLongMapConverter extends StringFlexMapConverter {
25
27
@ Override
You can’t perform that action at this time.
0 commit comments