define a new data type



Anyone know how to do something like this C code in Java.

#define Point2fT Tuple2fT

I have a Tuple2 class which I'd like to define a new data type for as
Point2. So I tried making Tuple2 an interface and extending from that,
but that seemed like overkill.

public class Point2fT extends Tuple2fT ...

Is there a better way to do this?

.



Relevant Pages

  • Re: define a new data type
    ... Java doesn't have that. ... >I have a Tuple2 class which I'd like to define a new data type for as ... I cannot think of any reason to do that, ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Can you set primitives as unsigned?
    ... > data type as unsigned, to give it a range of 0-255? ... Java has no keyword "unsigned". ... Prev by Date: ...
    (comp.lang.java.help)