|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Resolution
public class Resolution
immutable representation of an image resolution (two positive integers)
Field Summary | |
---|---|
static String |
PATTERN
pattern for parseable arguments |
int |
x
|
int |
y
|
Constructor Summary | |
---|---|
Resolution(int x,
int y)
regular constructor |
|
Resolution(String arg)
parsing constructor |
Method Summary | |
---|---|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int x
public final int y
public static final String PATTERN
Constructor Detail |
---|
public Resolution(int x, int y)
public Resolution(String arg)
arg
- command line argument to be parsed;
format see PATTERN
Method Detail |
---|
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |