X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=TP2%2FImage.java;h=c2b0b84d7f758b70e7bcc0d66675bf954ec9ba64;hp=007dd577d4547e1355b9ebe767789be91d7e0f0a;hb=78c725c5e287068ee24d4abb950de2ab9520d76a;hpb=878508f5a083290baab7478f23794d222fd875f4 diff --git a/TP2/Image.java b/TP2/Image.java index 007dd57..c2b0b84 100644 --- a/TP2/Image.java +++ b/TP2/Image.java @@ -1,5 +1,9 @@ import java.util.Comparator; +@ClassPreamble ( + author = "Jérôme Benoit", + date = "09/11/2009" +) public class Image extends Forme implements Compactable, Comparable, Comparator { @@ -92,7 +96,7 @@ public class Image extends Forme implements Compactable, } public int compare(Image image1, Image image2) { - return image1.getpOri().getY() - image2.getpOri().getY(); + return (int)(image1.getpOri().getY() - image2.getpOri().getY()); } }