I was wondering if there was a way to reverse traverse a Iterable in Java.
Iterable<DataSnapshot> snapShotIterator = dataSnapshot.getChildren();
for (DataSnapshot doc : snapShotIterator) {
BlogPost blogPost = doc.getValue(BlogPost.class);
blog_list.add(blogPost);
}
Above is my code that I am trying to get to traverse in a reverse order, is there a reverse function for Iterables like there is for Collections?
Thanks in advance!
Hyungjun