From 9661056e100cd8b74e90183504c1fbd9c706308a Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 5 Feb 2010 02:33:57 +0000 Subject: [PATCH] Be more flexible: follow the "PECS" rule for our Function. --- src/java/com/samskivert/depot/XArrayList.java | 2 +- src/java/com/samskivert/depot/XList.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/depot/XArrayList.java b/src/java/com/samskivert/depot/XArrayList.java index d58ef00..57c898a 100644 --- a/src/java/com/samskivert/depot/XArrayList.java +++ b/src/java/com/samskivert/depot/XArrayList.java @@ -34,7 +34,7 @@ public class XArrayList extends ArrayList implements XList { // from interface XList - public Collection map (Function mapper) + public Collection map (Function mapper) { return Lists.transform(this, mapper); } diff --git a/src/java/com/samskivert/depot/XList.java b/src/java/com/samskivert/depot/XList.java index 3fc4383..2275643 100644 --- a/src/java/com/samskivert/depot/XList.java +++ b/src/java/com/samskivert/depot/XList.java @@ -38,5 +38,5 @@ public interface XList extends List * Collection} to remind the caller that it is not an {@link ArrayList} but rather a lazy list * that will call the mapping function on the fly each time an element is read. Caveat coder. */ - public Collection map (Function mapper); + public Collection map (Function mapper); }