Skip to content

Commit 17167cb

Browse files
committed
BIG WIP
1 parent b2e28cd commit 17167cb

89 files changed

Lines changed: 11112 additions & 46 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

collection/pom.xml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>org.scijava</groupId>
7+
<artifactId>pom-scijava-core</artifactId>
8+
<version>0.1.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>scijava-collection</artifactId>
12+
13+
<name>SciJava Collection</name>
14+
<description>SciJava Collection</description>
15+
<url>https://github.com/scijava/scijava-ops</url>
16+
<inceptionYear>2014</inceptionYear>
17+
<organization>
18+
<name>SciJava</name>
19+
<url>http://www.scijava.org/</url>
20+
</organization>
21+
<licenses>
22+
<license>
23+
<name>Simplified BSD License</name>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<developers>
29+
<developer>
30+
<id>ctrueden</id>
31+
<name>Curtis Rueden</name>
32+
<url>http://imagej.net/User:Rueden</url>
33+
<roles>
34+
<role>founder</role>
35+
<role>lead</role>
36+
<role>developer</role>
37+
<role>debugger</role>
38+
<role>reviewer</role>
39+
<role>support</role>
40+
<role>maintainer</role>
41+
</roles>
42+
</developer>
43+
<developer>
44+
<id>dietzc</id>
45+
<name>Christian Dietz</name>
46+
<url>http://imagej.net/User:Dietzc</url>
47+
<roles>
48+
<role>founder</role>
49+
<role>lead</role>
50+
<role>developer</role>
51+
<role>debugger</role>
52+
<role>reviewer</role>
53+
<role>support</role>
54+
<role>maintainer</role>
55+
</roles>
56+
</developer>
57+
</developers>
58+
<contributors>
59+
<contributor>
60+
<name>None</name>
61+
</contributor>
62+
</contributors>
63+
64+
<mailingLists>
65+
<mailingList>
66+
<name>SciJava</name>
67+
<subscribe>https://groups.google.com/group/scijava</subscribe>
68+
<unsubscribe>https://groups.google.com/group/scijava</unsubscribe>
69+
<post>scijava@googlegroups.com</post>
70+
<archive>https://groups.google.com/group/scijava</archive>
71+
</mailingList>
72+
</mailingLists>
73+
74+
<scm>
75+
<connection>scm:git:git://github.com/scijava/scijava-ops</connection>
76+
<developerConnection>scm:git:git@github.com:scijava/scijava-ops</developerConnection>
77+
<tag>HEAD</tag>
78+
<url>https://github.com/scijava/scijava-ops</url>
79+
</scm>
80+
<issueManagement>
81+
<system>GitHub Issues</system>
82+
<url>https://github.com/scijava/scijava-ops/issues</url>
83+
</issueManagement>
84+
<ciManagement>
85+
<system>Travis CI</system>
86+
<url>https://travis-ci.org/scijava/scijava-ops</url>
87+
</ciManagement>
88+
89+
<properties>
90+
<license.licenseName>bsd_2</license.licenseName>
91+
<license.copyrightOwners>SciJava developers.</license.copyrightOwners>
92+
</properties>
93+
94+
<dependencies>
95+
<dependency>
96+
<groupId>org.scijava</groupId>
97+
<artifactId>scijava-util</artifactId>
98+
<version>${project.version}</version>
99+
</dependency>
100+
</dependencies>
101+
</project>

util/src/main/java/org/scijava/util/AbstractPrimitiveArray.java renamed to collection/src/main/java/org/scijava/collection/AbstractPrimitiveArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.lang.reflect.Array;
3636
import java.util.AbstractList;

util/src/main/java/org/scijava/util/BoolArray.java renamed to collection/src/main/java/org/scijava/collection/BoolArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.util.Collection;
3636

util/src/main/java/org/scijava/util/ByteArray.java renamed to collection/src/main/java/org/scijava/collection/ByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.util.Collection;
3636

util/src/main/java/org/scijava/util/DoubleArray.java renamed to collection/src/main/java/org/scijava/collection/DoubleArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.util.Collection;
3636

util/src/main/java/org/scijava/util/IntArray.java renamed to collection/src/main/java/org/scijava/collection/IntArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.util.Collection;
3636

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* #%L
3+
* SciJava Common shared library for SciJava software.
4+
* %%
5+
* Copyright (C) 2009 - 2017 Board of Regents of the University of
6+
* Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7+
* Institute of Molecular Cell Biology and Genetics, University of
8+
* Konstanz, and KNIME GmbH.
9+
* %%
10+
* Redistribution and use in source and binary forms, with or without
11+
* modification, are permitted provided that the following conditions are met:
12+
*
13+
* 1. Redistributions of source code must retain the above copyright notice,
14+
* this list of conditions and the following disclaimer.
15+
* 2. Redistributions in binary form must reproduce the above copyright notice,
16+
* this list of conditions and the following disclaimer in the documentation
17+
* and/or other materials provided with the distribution.
18+
*
19+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
23+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29+
* POSSIBILITY OF SUCH DAMAGE.
30+
* #L%
31+
*/
32+
33+
package org.scijava.collection;
34+
35+
import java.util.Collection;
36+
import java.util.function.Supplier;
37+
38+
/**
39+
* Interface for objects created lazily. This interface provides a mechanism to
40+
* register a callback of sorts, so that the {@link ObjectIndex} can request
41+
* creation of objects only when they are needed.
42+
*
43+
* @author Curtis Rueden
44+
*/
45+
public interface LazyObjects<T> extends Supplier<Collection<T>> {
46+
47+
/** Gets the collection of objects. */
48+
@Override
49+
Collection<T> get();
50+
51+
}

util/src/main/java/org/scijava/util/LongArray.java renamed to collection/src/main/java/org/scijava/collection/LongArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* #L%
3131
*/
3232

33-
package org.scijava.util;
33+
package org.scijava.collection;
3434

3535
import java.util.Collection;
3636

0 commit comments

Comments
 (0)