james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r748590 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java
Date Fri, 27 Feb 2009 16:55:50 GMT
Author: mwiederkehr
Date: Fri Feb 27 16:55:49 2009
New Revision: 748590

URL: http://svn.apache.org/viewvc?rev=748590&view=rev
Log:
removed isContentType(), isSubject(), isFrom() and isTo() from AbstractField; they are no
longer useful because they are hidden behind interface Field now..

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java?rev=748590&r1=748589&r2=748590&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/AbstractField.java Fri
Feb 27 16:55:49 2009
@@ -153,46 +153,6 @@
         return null;
     }
 
-    /**
-     * Determines if this is a <code>Content-Type</code> field.
-     * 
-     * @return <code>true</code> if this is a <code>Content-Type</code>
field,
-     *         <code>false</code> otherwise.
-     */
-    public boolean isContentType() {
-        return FieldName.CONTENT_TYPE.equalsIgnoreCase(name);
-    }
-    
-    /**
-     * Determines if this is a <code>Subject</code> field.
-     * 
-     * @return <code>true</code> if this is a <code>Subject</code>
field,
-     *         <code>false</code> otherwise.
-     */
-    public boolean isSubject() {
-        return FieldName.SUBJECT.equalsIgnoreCase(name);
-    }
-    
-    /**
-     * Determines if this is a <code>From</code> field.
-     * 
-     * @return <code>true</code> if this is a <code>From</code> field,
-     *         <code>false</code> otherwise.
-     */
-    public boolean isFrom() {
-        return FieldName.FROM.equalsIgnoreCase(name);
-    }
-    
-    /**
-     * Determines if this is a <code>To</code> field.
-     * 
-     * @return <code>true</code> if this is a <code>To</code> field,
-     *         <code>false</code> otherwise.
-     */
-    public boolean isTo() {
-        return FieldName.TO.equalsIgnoreCase(name);
-    }
-    
     @Override
     public String toString() {
         return name + ": " + body;



Mime
View raw message