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 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717package io .objectbox .converter ;
1818
1919/**
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>}.
2123 */
2224public class IntegerFlexMapConverter extends FlexObjectConverter {
2325
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import io .objectbox .flatbuffers .FlexBuffers ;
2020
2121/**
22- * Used to automatically convert {@code Map<Integer, Long> }.
22+ * Like {@link IntegerFlexMapConverter}, but always restores integer map values as {@link Long}.
2323 * <p>
24- * Unlike {@link FlexObjectConverter} always restores integer map values as {@link Long}.
24+ * Used by default to convert {@code Map<Integer, Long> }.
2525 */
2626public class IntegerLongMapConverter extends IntegerFlexMapConverter {
2727 @ Override
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717package io .objectbox .converter ;
1818
1919/**
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>}.
2123 */
2224public class LongFlexMapConverter extends FlexObjectConverter {
2325
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import io .objectbox .flatbuffers .FlexBuffers ;
2020
2121/**
22- * Used to automatically convert {@code Map< Long, Long> }.
22+ * Like {@link LongFlexMapConverter}, but always restores integer map values as {@link Long}.
2323 * <p>
24- * Unlike {@link FlexObjectConverter} always restores integer map values as {@link Long}.
24+ * Used by default to convert {@code Map< Long, Long> }.
2525 */
2626public class LongLongMapConverter extends LongFlexMapConverter {
2727 @ Override
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717package io .objectbox .converter ;
1818
1919/**
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>}.
2123 */
2224public class StringFlexMapConverter extends FlexObjectConverter {
2325}
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2021 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2020-2024 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import io .objectbox .flatbuffers .FlexBuffers ;
2020
2121/**
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>}.
2325 */
2426public class StringLongMapConverter extends StringFlexMapConverter {
2527 @ Override
You can’t perform that action at this time.
0 commit comments