abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1209669 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java
Date Fri, 02 Dec 2011 19:57:46 GMT
Author: jmsnell
Date: Fri Dec  2 19:57:45 2011
New Revision: 1209669

URL: http://svn.apache.org/viewvc?rev=1209669&view=rev
Log:
Minor utility method update

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java?rev=1209669&r1=1209668&r2=1209669&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java
(original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/misc/MoreFunctions.java
Fri Dec  2 19:57:45 2011
@@ -42,6 +42,10 @@ public final class MoreFunctions {
   
   private MoreFunctions() {}
   
+  public static <K>Function<K,Void> alwaysVoid() {
+    return MoreFunctions.<K,Void>alwaysNull();
+  }
+  
   public static <K,V>Function<K,V> alwaysNull() {
     return new Function<K,V>() {
       public V apply(K input) {



Mime
View raw message