Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generic taxonomy change processor #981

Merged
merged 13 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg
* Copyright 2011-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -78,6 +78,8 @@ public interface PrimitiveMapFactory {

<K> IntValueMap<K> newObjectKeyIntOpenHashMapWithExpectedSize(int expectedSize);

<K> IntValueMap<K> newObjectKeyIntOpenHashMap(IntValueMap<K> source);

<K> LongValueMap<K> newObjectKeyLongOpenHashMap();

<K> LongValueMap<K> newObjectKeyLongOpenHashMapWithExpectedSize(int expectedSize);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg
* Copyright 2011-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -157,6 +157,14 @@ public static <K> IntValueMap<K> newObjectKeyIntOpenHashMap() {
public static <K> IntValueMap<K> newObjectKeyIntOpenHashMapWithExpectedSize(int expectedSize) {
return FACTORY.newObjectKeyIntOpenHashMapWithExpectedSize(expectedSize);
}

public static <K> IntValueMap<K> newObjectKeyIntOpenHashMap(IntValueMap<K> source) {
if (source == null) {
return newObjectKeyIntOpenHashMap();
} else {
return FACTORY.newObjectKeyIntOpenHashMap(source);
}
}

public static <K> LongValueMap<K> newObjectKeyLongOpenHashMap() {
return FACTORY.newObjectKeyLongOpenHashMap();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg
* Copyright 2011-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -156,6 +156,11 @@ public <K> IntValueMap<K> newObjectKeyIntOpenHashMap() {
public <K> IntValueMap<K> newObjectKeyIntOpenHashMapWithExpectedSize(int expectedSize) {
return ObjectKeyIntMapWrapper.createWithExpectedSize(expectedSize);
}

@Override
public <K> IntValueMap<K> newObjectKeyIntOpenHashMap(IntValueMap<K> source) {
return ObjectKeyIntMapWrapper.create(source);
}

@Override
public <K> LongValueMap<K> newObjectKeyLongOpenHashMap() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2020 B2i Healthcare Pte Ltd, http://b2i.sg
* Copyright 2011-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,11 +19,7 @@
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

import com.b2international.commons.test.collect.BitSetTest;
import com.b2international.commons.test.collect.ByteOpenHashSetTest;
import com.b2international.commons.test.collect.EmptyLongListTest;
import com.b2international.commons.test.collect.IntOpenHashSetTest;
import com.b2international.commons.test.collect.LongOpenHashSetTest;
import com.b2international.commons.test.collect.*;
import com.b2international.commons.test.config.ConfigurationFactoryTest;

/**
Expand All @@ -39,7 +35,9 @@
ByteOpenHashSetTest.class,
IntOpenHashSetTest.class,
LongOpenHashSetTest.class,
EmptyLongListTest.class
EmptyLongListTest.class,
OrderedSetTest.class,
LongOrderedSetTest.class,
})
public class AllCommonsTests {
// Empty class body
Expand Down
Loading