# ignite-325 : fix licenses at pcollections
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/c80ab636 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/c80ab636 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/c80ab636 Branch: refs/heads/ignite-239 Commit: c80ab63626a5c9519476a66cb386b427449f5cea Parents: a52e700 Author: Artem Shutak <ashu...@gridgain.com> Authored: Wed Feb 25 18:02:49 2015 +0300 Committer: Artem Shutak <ashu...@gridgain.com> Committed: Wed Feb 25 18:02:49 2015 +0300 ---------------------------------------------------------------------- modules/clients/src/test/keystore/generate.sh | 16 ++++++++++++++- .../java/org/pcollections/AmortizedPQueue.java | 17 ++++++++++++++++ .../main/java/org/pcollections/ConsPStack.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/Empty.java | 17 ++++++++++++++++ .../main/java/org/pcollections/HashPMap.java | 17 ++++++++++++++++ .../java/org/pcollections/HashTreePBag.java | 17 ++++++++++++++++ .../java/org/pcollections/HashTreePMap.java | 17 ++++++++++++++++ .../java/org/pcollections/HashTreePSet.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/IntTree.java | 17 ++++++++++++++++ .../main/java/org/pcollections/IntTreePMap.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/MapPBag.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/MapPSet.java | 17 ++++++++++++++++ .../main/java/org/pcollections/OrderedPSet.java | 21 ++++++++++++++++++-- .../src/main/java/org/pcollections/PBag.java | 17 ++++++++++++++++ .../main/java/org/pcollections/PCollection.java | 18 ++++++++++++++++- .../src/main/java/org/pcollections/PMap.java | 17 ++++++++++++++++ .../main/java/org/pcollections/POrderedSet.java | 21 ++++++++++++++++++-- .../src/main/java/org/pcollections/PQueue.java | 16 ++++++++++++++- .../main/java/org/pcollections/PSequence.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/PSet.java | 17 ++++++++++++++++ .../src/main/java/org/pcollections/PStack.java | 18 ++++++++++++++++- .../src/main/java/org/pcollections/PVector.java | 18 ++++++++++++++++- .../org/pcollections/SimpleImmutableEntry.java | 19 +++++++++++++++++- .../main/java/org/pcollections/TreePVector.java | 17 ++++++++++++++++ 24 files changed, 409 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/clients/src/test/keystore/generate.sh ---------------------------------------------------------------------- diff --git a/modules/clients/src/test/keystore/generate.sh b/modules/clients/src/test/keystore/generate.sh index 6d270ed..3f22cef 100644 --- a/modules/clients/src/test/keystore/generate.sh +++ b/modules/clients/src/test/keystore/generate.sh @@ -1,4 +1,18 @@ #!/bin/sh +# rat.copyrightMessage +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # # Initialize openssl & CA. # @@ -81,4 +95,4 @@ keytool -import -alias ca -file ${ca_cert} -keypass ${pwd} -noprompt -trustcacer #keytool -importkeystore -srckeystore client.jks -destkeystore trust.jks -srcstorepass ${pwd} -deststorepass ${pwd} -alias client -noprompt #keytool -importkeystore -srckeystore server.jks -destkeystore trust.jks -srcstorepass ${pwd} -deststorepass ${pwd} -alias server -noprompt keytool -export -alias client -keystore client.jks -storepass ${pwd} | keytool -importcert -alias client -noprompt -keystore trust.jks -storepass ${pwd} -keytool -export -alias server -keystore server.jks -storepass ${pwd} | keytool -importcert -alias server -noprompt -keystore trust.jks -storepass ${pwd} \ No newline at end of file +keytool -export -alias server -keystore server.jks -storepass ${pwd} | keytool -importcert -alias server -noprompt -keystore trust.jks -storepass ${pwd} http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/AmortizedPQueue.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/AmortizedPQueue.java b/modules/core/src/main/java/org/pcollections/AmortizedPQueue.java index a1df809..add71a3 100644 --- a/modules/core/src/main/java/org/pcollections/AmortizedPQueue.java +++ b/modules/core/src/main/java/org/pcollections/AmortizedPQueue.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/ConsPStack.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/ConsPStack.java b/modules/core/src/main/java/org/pcollections/ConsPStack.java index 9d2512d..1af3606 100644 --- a/modules/core/src/main/java/org/pcollections/ConsPStack.java +++ b/modules/core/src/main/java/org/pcollections/ConsPStack.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/Empty.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/Empty.java b/modules/core/src/main/java/org/pcollections/Empty.java index ab7a260..1dcc704 100644 --- a/modules/core/src/main/java/org/pcollections/Empty.java +++ b/modules/core/src/main/java/org/pcollections/Empty.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; /* Mike Klein, 2/27/2009 */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/HashPMap.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/HashPMap.java b/modules/core/src/main/java/org/pcollections/HashPMap.java index e96c1f7..935e512 100644 --- a/modules/core/src/main/java/org/pcollections/HashPMap.java +++ b/modules/core/src/main/java/org/pcollections/HashPMap.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/HashTreePBag.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/HashTreePBag.java b/modules/core/src/main/java/org/pcollections/HashTreePBag.java index 51dc434..38ed49f 100644 --- a/modules/core/src/main/java/org/pcollections/HashTreePBag.java +++ b/modules/core/src/main/java/org/pcollections/HashTreePBag.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/HashTreePMap.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/HashTreePMap.java b/modules/core/src/main/java/org/pcollections/HashTreePMap.java index 7a8071b..3773d91 100644 --- a/modules/core/src/main/java/org/pcollections/HashTreePMap.java +++ b/modules/core/src/main/java/org/pcollections/HashTreePMap.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/HashTreePSet.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/HashTreePSet.java b/modules/core/src/main/java/org/pcollections/HashTreePSet.java index e33e01e..6218867 100644 --- a/modules/core/src/main/java/org/pcollections/HashTreePSet.java +++ b/modules/core/src/main/java/org/pcollections/HashTreePSet.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/IntTree.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/IntTree.java b/modules/core/src/main/java/org/pcollections/IntTree.java index 5d2335a..5309600 100644 --- a/modules/core/src/main/java/org/pcollections/IntTree.java +++ b/modules/core/src/main/java/org/pcollections/IntTree.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/IntTreePMap.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/IntTreePMap.java b/modules/core/src/main/java/org/pcollections/IntTreePMap.java index 3c90527..72f7fae 100644 --- a/modules/core/src/main/java/org/pcollections/IntTreePMap.java +++ b/modules/core/src/main/java/org/pcollections/IntTreePMap.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/MapPBag.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/MapPBag.java b/modules/core/src/main/java/org/pcollections/MapPBag.java index 2ef5eb6..73a841e 100644 --- a/modules/core/src/main/java/org/pcollections/MapPBag.java +++ b/modules/core/src/main/java/org/pcollections/MapPBag.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/MapPSet.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/MapPSet.java b/modules/core/src/main/java/org/pcollections/MapPSet.java index 0e78eb8..12bb826 100644 --- a/modules/core/src/main/java/org/pcollections/MapPSet.java +++ b/modules/core/src/main/java/org/pcollections/MapPSet.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/OrderedPSet.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/OrderedPSet.java b/modules/core/src/main/java/org/pcollections/OrderedPSet.java index 48ea3bc..79b6654 100644 --- a/modules/core/src/main/java/org/pcollections/OrderedPSet.java +++ b/modules/core/src/main/java/org/pcollections/OrderedPSet.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; @@ -55,9 +72,9 @@ public class OrderedPSet<E> extends AbstractSet<E> implements POrderedSet<E> { @Override public OrderedPSet<E> minusAll(Collection<?> list) { OrderedPSet<E> s = this; - for (Object e : list) { + for (Object e : list) s = s.minus(e); - } + return s; } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PBag.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PBag.java b/modules/core/src/main/java/org/pcollections/PBag.java index 5377244..ee33608 100644 --- a/modules/core/src/main/java/org/pcollections/PBag.java +++ b/modules/core/src/main/java/org/pcollections/PBag.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PCollection.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PCollection.java b/modules/core/src/main/java/org/pcollections/PCollection.java index 40cca8d..472502e 100644 --- a/modules/core/src/main/java/org/pcollections/PCollection.java +++ b/modules/core/src/main/java/org/pcollections/PCollection.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; @@ -9,7 +26,6 @@ import java.util.*; * @author harold */ public interface PCollection<E> extends Collection<E> { - /** * @param e non-null * @return a collection which contains e and all of the elements of this http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PMap.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PMap.java b/modules/core/src/main/java/org/pcollections/PMap.java index a541128..92ef731 100644 --- a/modules/core/src/main/java/org/pcollections/PMap.java +++ b/modules/core/src/main/java/org/pcollections/PMap.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/POrderedSet.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/POrderedSet.java b/modules/core/src/main/java/org/pcollections/POrderedSet.java index 940dcfa..d7e8fec 100644 --- a/modules/core/src/main/java/org/pcollections/POrderedSet.java +++ b/modules/core/src/main/java/org/pcollections/POrderedSet.java @@ -1,10 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; /** - * Like {@link org.pcollections.PSet} but preserves insertion order. Persistent equivalent of - * {@link java.util.LinkedHashSet}. + * Like {@link PSet} but preserves insertion order. Persistent equivalent of + * {@link LinkedHashSet}. * * @param <E> * @author Tassilo Horn <h...@uni-koblenz.de> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PQueue.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PQueue.java b/modules/core/src/main/java/org/pcollections/PQueue.java index 3c3389f..e8644b3 100644 --- a/modules/core/src/main/java/org/pcollections/PQueue.java +++ b/modules/core/src/main/java/org/pcollections/PQueue.java @@ -1,6 +1,20 @@ -/** +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PSequence.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PSequence.java b/modules/core/src/main/java/org/pcollections/PSequence.java index b7367cf..15f7d99 100644 --- a/modules/core/src/main/java/org/pcollections/PSequence.java +++ b/modules/core/src/main/java/org/pcollections/PSequence.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PSet.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PSet.java b/modules/core/src/main/java/org/pcollections/PSet.java index 52f1314..9dcbab9 100644 --- a/modules/core/src/main/java/org/pcollections/PSet.java +++ b/modules/core/src/main/java/org/pcollections/PSet.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PStack.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PStack.java b/modules/core/src/main/java/org/pcollections/PStack.java index 0e75c5c..c90e48b 100644 --- a/modules/core/src/main/java/org/pcollections/PStack.java +++ b/modules/core/src/main/java/org/pcollections/PStack.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; @@ -9,7 +26,6 @@ import java.util.*; * @author harold */ public interface PStack<E> extends PSequence<E> { - /** * Returns a stack consisting of the elements of this with e prepended. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/PVector.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/PVector.java b/modules/core/src/main/java/org/pcollections/PVector.java index b098393..e82d022 100644 --- a/modules/core/src/main/java/org/pcollections/PVector.java +++ b/modules/core/src/main/java/org/pcollections/PVector.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*; @@ -9,7 +26,6 @@ import java.util.*; * @author harold */ public interface PVector<E> extends PSequence<E> { - /** * Returns a vector consisting of the elements of this with e appended. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/SimpleImmutableEntry.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/SimpleImmutableEntry.java b/modules/core/src/main/java/org/pcollections/SimpleImmutableEntry.java index d5bbbf3..3577cc6 100644 --- a/modules/core/src/main/java/org/pcollections/SimpleImmutableEntry.java +++ b/modules/core/src/main/java/org/pcollections/SimpleImmutableEntry.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.Map.*; @@ -143,4 +160,4 @@ import java.util.Map.*; public String toString() { return key + "=" + value; } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c80ab636/modules/core/src/main/java/org/pcollections/TreePVector.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/pcollections/TreePVector.java b/modules/core/src/main/java/org/pcollections/TreePVector.java index 996931a..a93df86 100644 --- a/modules/core/src/main/java/org/pcollections/TreePVector.java +++ b/modules/core/src/main/java/org/pcollections/TreePVector.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.pcollections; import java.util.*;