-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ | |
* | ||
* @param <T> Type of elements of the collection. | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public interface ReadOnlyCollection<T> extends Iterable<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,8 @@ | |
* A list with only accessors and no mutators. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public interface ReadOnlyList<T> extends ReadOnlyCollection<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,8 @@ | |
* | ||
* @param <T> Type of elements of the set. | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public interface ReadOnlySet<T> extends ReadOnlyCollection<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ | |
* Wraps a {@link java.util.Collection} to expose only its accessors. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
class WrappingReadOnlyCollection<T> implements ReadOnlyCollection<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ | |
* Wraps a {@link java.util.List} to expose only its accessors. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public class WrappingReadOnlyList<T> implements ReadOnlyList<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ | |
* | ||
* @param <T> Type of elements of the collection. | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
@SuppressWarnings("unused") | ||
public class WrappingReadOnlySet<T> implements ReadOnlySet<T> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,8 @@ | |
* A base test for {@link ReadOnlyCollection}s. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public abstract class AbstractReadOnlyCollectionTest<T> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ | |
* A base test for {@link ReadOnlyList}s. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
public abstract class AbstractReadOnlyListTest<T> extends | ||
AbstractReadOnlyCollectionTest<T> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,6 @@ | |
* Base tests for ReadOnlyCollections. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
*/ | ||
package org.tendiwa.rocollections.test.base; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,8 @@ | |
* passed into that static method. | ||
* | ||
* @author Georgy Vlasov ([email protected]) | ||
* @version $Id$ | ||
* @version $tendiwa-version$ | ||
* @since 0.1 | ||
*/ | ||
@RunWith(Enclosed.class) | ||
public final class WrappingReadOnlyListTest { | ||
|