Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use javax.time.TAIInstant package?

 
Henadeerage Henadeera
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21142
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic