Doing some java dev with twitter4j and curious to know if when I make a call to
Status tweet = blah blah blah.
long tweetID = tweet.getId(); //Is this unique?
I setup a HashSet in order to keep track of tweets I've already received and I have a print statement for duplicates. I was under the impression that Twitter used a 64bit long to generate unique keys but I was unable to find any correlation between the twitter4j tweet id and Twitter's tweet id. Main question is: Are the twitter4j Status tweet ids unique?
[Edit] Some elaboration, I have a HashSet of Longs
HashSet<Long> usedIds = new HashSet<Long>();
//Get new twitter4j Status
if(!usedIds.contains(tweetID)) {
//this is not a duplicate
//Place id into set
usedIds.add(tweetID);
//do work
} else {
//This is duplicate and my program is printing stuff
//From what I've learned this condition should never be met but it is
}