package org.apache.poi.poifs.property;
import java.io.IOException;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
return result;
}
- public static class PropertyComparator implements Comparator<Property> {
-
+ public static class PropertyComparator implements Comparator<Property>, Serializable {
+
/**
* compare method. Assumes both parameters are non-null
* instances of Property. One property is less than another if
\r
import java.io.File;\r
import java.io.IOException;\r
+import java.io.Serializable;\r
import java.util.Comparator;\r
\r
import javax.xml.namespace.QName;\r
* The constructor accepts an argument indicating whether the comparison order is the same as\r
* the lexicographic order of the strings or the reverse.\r
*/\r
- public static final class QNameComparator implements Comparator<XmlCursor>\r
+ public static final class QNameComparator implements Comparator<XmlCursor>, Serializable\r
{\r
public static final int ASCENDING = 1;\r
public static final int DESCENDING = 2;\r
package org.apache.poi.hslf.usermodel;
import java.awt.geom.Rectangle2D;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
updateRowHeightsProperty();
}
- private static class TableCellComparator implements Comparator<HSLFShape> {
+ private static class TableCellComparator implements Comparator<HSLFShape>, Serializable {
public int compare( HSLFShape o1, HSLFShape o2 ) {
Rectangle2D anchor1 = o1.getAnchor();
Rectangle2D anchor2 = o2.getAnchor();
import static org.apache.poi.hsmf.datatypes.MAPIProperty.ATTACH_SIZE;
import java.io.IOException;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/**
* Orders by the attachment number.
*/
- public static class AttachmentChunksSorter implements Comparator<AttachmentChunks> {
+ public static class AttachmentChunksSorter implements Comparator<AttachmentChunks>, Serializable {
public int compare(AttachmentChunks a, AttachmentChunks b) {
return a.poifsName.compareTo(b.poifsName);
}
package org.apache.poi.hsmf.datatypes;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/**
* Orders by the recipient number.
*/
- public static class RecipientChunksSorter implements Comparator<RecipientChunks> {
+ public static class RecipientChunksSorter implements Comparator<RecipientChunks>, Serializable {
public int compare(RecipientChunks a, RecipientChunks b) {
if(a.recipientNumber < b.recipientNumber)
return -1;
package org.apache.poi.hwpf.model;
import java.io.IOException;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
return textPlex.toByteArray();
}
- private static class FCComparator implements Comparator<TextPiece>
+ private static class FCComparator implements Comparator<TextPiece>, Serializable
{
public int compare( TextPiece textPiece, TextPiece textPiece1 )
{
==================================================================== */
package org.apache.poi.hwpf.usermodel;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
}
}
- private static final class PlexOfFieldComparator implements
- Comparator<PlexOfField>
- {
+ private static final class PlexOfFieldComparator implements Comparator<PlexOfField>, Serializable {
public int compare( PlexOfField o1, PlexOfField o2 )
{
int thisVal = o1.getFcStart();