Skip to content

Commit

Permalink
Project restructured for more modularization
Browse files Browse the repository at this point in the history
  • Loading branch information
igorakkerman committed Mar 26, 2015
1 parent 1e1007c commit 776b63d
Show file tree
Hide file tree
Showing 26 changed files with 64 additions and 64 deletions.
14 changes: 8 additions & 6 deletions jlib-container.iml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
Expand All @@ -10,18 +10,20 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="jlib-codequality" />
<orderEntry type="module" module-name="jlib-core" />
<orderEntry type="module" module-name="jlib-basefunctions" />
<orderEntry type="module" module-name="jlib-exception" />
<orderEntry type="module" module-name="jlib-message" />
<orderEntry type="module" module-name="jlib-iterator" />
<orderEntry type="module" module-name="jlib-array" />
<orderEntry type="module" module-name="jlib-operator" />
<orderEntry type="module" module-name="jlib-value" />
<orderEntry type="library" name="Maven: org.checkerframework:checker-qual:1.8.10" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:18.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.0" level="project" />
<orderEntry type="library" name="Maven: org.checkerframework:checker-qual:1.8.10" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:1.7.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:2.0.3-beta" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.1" level="project" />
<orderEntry type="module" module-name="jlib-codequality" />
</component>
</module>
32 changes: 15 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,42 +50,44 @@
<dependencies>
<dependency>
<groupId>org.jlib</groupId>
<artifactId>jlib-core</artifactId>
<artifactId>jlib-codequality</artifactId>
</dependency>

<dependency>
<groupId>org.jlib</groupId>
<artifactId>jlib-basefunctions</artifactId>
<artifactId>jlib-core</artifactId>
</dependency>

<dependency>
<groupId>org.jlib</groupId>
<artifactId>jlib-operator</artifactId>
<artifactId>jlib-basefunctions</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.jlib</groupId>
<artifactId>jlib-iterator</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<groupId>org.jlib</groupId>
<artifactId>jlib-array</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<groupId>org.jlib</groupId>
<artifactId>jlib-operator</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</dependency>

<!-- unit test dependencies -->

<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>

<dependency>
Expand All @@ -98,9 +100,5 @@
<artifactId>mockito-core</artifactId>
</dependency>

<dependency>
<groupId>org.jlib</groupId>
<artifactId>jlib-codequality</artifactId>
</dependency>
</dependencies>
</project>
10 changes: 5 additions & 5 deletions src/main/java/org/jlib/container/iterator/IterableUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

import java.util.Iterator;

import org.jlib.core.iterator.BidiIterable;
import org.jlib.core.iterator.InvalidIterableStateException;
import org.jlib.core.iterator.RemoveIterable;
import org.jlib.core.iterator.RemoveIterator;
import org.jlib.core.iterator.SingletonIterable;
import org.jlib.iterator.BidiIterable;
import org.jlib.iterator.InvalidIterableStateException;
import org.jlib.iterator.RemoveIterable;
import org.jlib.iterator.RemoveIterator;
import org.jlib.iterator.SingletonIterable;

import org.jlib.operator.observer.Observer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import java.util.Iterator;

import org.jlib.core.iterator.InvalidIteratorStateException;
import org.jlib.iterator.InvalidIteratorStateException;

/**
* {@link InvalidIteratorStateException} thrown when there is Item to remove by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.iterator;

import org.jlib.core.iterator.RemoveIterable;
import org.jlib.iterator.RemoveIterable;

/**
* Object providing a {@link ObservedRemoveIterable} over its Items.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

package org.jlib.container.iterator;

import org.jlib.core.iterator.InvalidIterableStateException;
import org.jlib.core.iterator.NoItemToRemoveException;
import org.jlib.core.iterator.RemoveIterator;
import org.jlib.iterator.InvalidIterableStateException;
import org.jlib.iterator.NoItemToRemoveException;
import org.jlib.iterator.RemoveIterator;

import org.jlib.operator.observer.Observer;
import org.jlib.operator.observer.ObserverException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import java.util.Iterator;

import org.jlib.core.iterator.InvalidIteratorStateException;
import org.jlib.iterator.InvalidIteratorStateException;

/**
* {@link Iterator} over replaceable Items.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.iterator;

import org.jlib.core.iterator.RemoveIterable;
import org.jlib.iterator.RemoveIterable;

/**
* Object providing allowing Items to be removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.iterator;

import org.jlib.core.iterator.RemoveIterator;
import org.jlib.iterator.RemoveIterator;

/**
* {@link ReplaceIterator} and {@link RemoveIterator}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

package org.jlib.container.operation;

import org.jlib.core.exception.InvalidStateException;
import org.jlib.exception.InvalidStateException;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

public class ForbiddenCastException
extends InvalidStateException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.operation;

import org.jlib.core.iterator.IterableUtility;
import org.jlib.iterator.IterableUtility;

public class FromIteratorIsEmpty<Item>
implements IsEmpty<Item> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

package org.jlib.container.operation;

import org.jlib.core.exception.InvalidArgumentException;
import org.jlib.core.message.Message;
import org.jlib.exception.InvalidArgumentException;
import org.jlib.message.Message;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

public abstract class InvalidContainerArgumentException
extends InvalidArgumentException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

package org.jlib.container.operation;

import org.jlib.core.exception.InvalidStateException;
import org.jlib.core.message.Message;
import org.jlib.exception.InvalidStateException;
import org.jlib.message.Message;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

public abstract class InvalidContainerStateException
extends InvalidStateException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
package org.jlib.container.operation;


import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

/**
* {@link InvalidContainerArgumentException} thrown when trying to invalidly add
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.operation;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

/**
* {@link InvalidContainerArgumentException} thrown when a {@link RemoveSingleByValue} does not contain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import java.util.Collection;

import org.jlib.core.array.ArrayUtility;
import org.jlib.array.ArrayUtility;

import org.jlib.container.operation.ContainsSingle;
import org.jlib.container.operation.InvalidContainerArgumentException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

package org.jlib.container.operation.containsadapter;

import org.jlib.core.iterator.IterableUtility;

import org.jlib.container.operation.InvalidContainerArgumentException;
import org.jlib.container.operation.InvalidContainerStateException;

import org.jlib.iterator.IterableUtility;

public class IterativeContainsAdapter<Item>
extends ContainsAdapter<Item> {

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jlib/container/storage/IndexRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

import java.io.Serializable;

import org.jlib.core.exception.UnexpectedStateException;
import org.jlib.core.language.Valid;
import org.jlib.core.Valid;

import static org.jlib.core.math.NumberUtility.count;
import static org.jlib.core.IndexUtility.count;
import org.jlib.exception.UnexpectedStateException;

/**
* Modifiable {@link Integer} index range.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import java.io.Serializable;

import org.jlib.core.exception.UnexpectedStateException;
import org.jlib.exception.UnexpectedStateException;

/**
* Descriptor of an operation on indexed objects specifying a source index range and a target index.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.storage;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

public class InvalidAdditionalCapacityException
extends InvalidStorageArgumentException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

package org.jlib.container.storage;

import org.jlib.core.exception.InvalidArgumentException;
import org.jlib.core.message.Message;
import org.jlib.exception.InvalidArgumentException;
import org.jlib.message.Message;

/**
* {@link InvalidArgumentException} thrown when an invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.storage;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

/**
* {@link InvalidStorageArgumentException} thrown when an invalid capacity of an {@link LinearIndexStorage} is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.storage;

import org.jlib.core.message.Message;
import org.jlib.message.Message;

public class InvalidStorageIndexException
extends InvalidStorageArgumentException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.jlib.container.storage.array;

import org.jlib.core.language.Valid;
import org.jlib.core.Valid;

import org.jlib.container.storage.AbstractLinearIndexStorage;
import org.jlib.container.storage.IndexRangeOperationDescriptor;
Expand All @@ -31,8 +31,8 @@

import static java.lang.System.arraycopy;
import static java.util.Arrays.copyOf;
import static org.jlib.core.array.ArrayUtility.array;
import static org.jlib.core.math.NumberUtility.count;
import static org.jlib.array.ArrayUtility.array;
import static org.jlib.core.IndexUtility.count;

/**
* {@link LinearIndexStorage} based on an array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.jlib.container.storage.LinearIndexStorage;

import org.jlib.basefunctions.ApplicationObject;
import static org.jlib.core.message.MessageUtility.mfmessage;
import static org.jlib.message.MessageUtility.mfmessage;

public abstract class AbstractCapacityStrategy
extends ApplicationObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.jlib.container.storage.LinearIndexStorage;
import org.jlib.container.storage.InvalidStorageArgumentException;

import static org.jlib.core.message.MessageUtility.message;
import static org.jlib.message.MessageUtility.message;

public class InvalidCapacityException
extends InvalidStorageArgumentException {
Expand Down

0 comments on commit 776b63d

Please sign in to comment.