*
The moose likes Java in General and the fly likes how to use javax.time.TAIInstant package? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to use javax.time.TAIInstant package?" Watch "how to use javax.time.TAIInstant package?" New topic
Author

how to use javax.time.TAIInstant package?

Henadeerage Henadeera
Greenhorn

Joined: Aug 13, 2011
Posts: 12
I have no idea ,
How to create TAIInstant type object in order to getTAISeconds()
I tried like this way.(necessary codes are given)

import javax.time.TAIInstant ;

TAIInstant taiinstant = new TAIInstant() ; // here it gives an error. it says it need parameters. When I check the API it has not given the constructor. netbean said it needs long and int //parameters. when I gives dummy val, it says TAIInstant(long,int) has private access in javax.time.TAIInstant

taiinstant.getTAISeconds() ;

below link is for download javax.time.TAIInstant package
http://sourceforge.net/apps/mediawiki/threeten/index.php?title=ThreeTen

please anybody help me, where I have done the mistake???
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Well, the page you linked to does say this:
The ThreeTen project is still in Alpha so methods may appear and disappear at any point.


And it says it in boldface as well, meaning it's important. So to me it isn't surprising that you don't have good documentation yet and that things aren't what they seem. That's what "Alpha" means in software development. If you aren't prepared for this sort of thing then you really shouldn't be using the project.
Henadeerage Henadeera
Greenhorn

Joined: Aug 13, 2011
Posts: 12
Paul Clapham wrote:Well, the page you linked to does say this:
The ThreeTen project is still in Alpha so methods may appear and disappear at any point.


And it says it in boldface as well, meaning it's important. So to me it isn't surprising that you don't have good documentation yet and that things aren't what they seem. That's what "Alpha" means in software development. If you aren't prepared for this sort of thing then you really shouldn't be using the project.



Oh!!! I didn't notice it...
because I found the API doc and it mentions clearly about the use of this class...
I think there may be an updated version of this package...

Anyway thanks for figuring the problem out .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use javax.time.TAIInstant package?
 
Similar Threads
JMX invoke() method
NX: URLyBird questions about database
Boone's mockexam question
Use of pubilc methods in package class
packages