/[projects]/android/Side9/src/dk/thoerup/side9/Side9Data.java
ViewVC logotype

Contents of /android/Side9/src/dk/thoerup/side9/Side9Data.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 771 - (show annotations) (download)
Mon May 31 14:14:59 2010 UTC (13 years, 11 months ago) by torben
File size: 594 byte(s)
Partial commit - first iteration of saving images to /sdcard/
1 package dk.thoerup.side9;
2
3 import java.net.MalformedURLException;
4 import java.net.URL;
5
6 public class Side9Data {
7 public String url;
8 public String filename;
9 public int width;
10 public int height;
11 public String caption;
12
13
14
15
16 @Override
17 public boolean equals(Object o) {
18 if (o == null)
19 return false;
20 if (! (o instanceof Side9Data) )
21 return false;
22
23 Side9Data data = (Side9Data) o;
24 return this.url.equals( data.url );
25
26 }
27
28 public String getFilename() {
29 String parts[] = url.split("/");
30 return parts[ parts.length - 1];
31
32 }
33
34
35 }
36

  ViewVC Help
Powered by ViewVC 1.1.20