Questions tagged [android-guava]

Android-guava is a project to bring the best parts of guava to Android. The Optional class should make the process of handling errors in loaders or AsyncTasks that make http requests a little better. By requiring a check for an empty state, indicating an error occurred, your code will be less buggy and easier to follow.

About

Android-guava is a project to bring the best parts of guava to Android. The Optional class should make the process of handling errors in loaders or AsyncTasks that make http requests a little better. By requiring a check for an empty state, indicating an error occurred, your code will be less buggy and easier to follow.

License

Apache License Version 2

Links

Github

34 questions
0
votes
0 answers

How do I validate user input with Guava on Android?

In my Android app I have certain forms which I use to get user input. I need to validate these inputs to check certain conditions like: is empty is a number ... How do I validate user inputs using google guava?
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
2 answers

Google Guava - Filter Multiple Inputs on Single Property

I just got into Google Guava and it seems like a powerful tool and I see how you can use Predicates and filter by a specific property. How you can also chain predicates in FluentIterable My question is what's the best way to filter for a single…
Alan
  • 9,331
  • 14
  • 52
  • 97
0
votes
2 answers

can collections.filter be wrong?

I try to filter a collection according to a predicate: private void filterExpiredOffers() { mOffersList = Lists.newArrayList(Collections2.filter( mOffersList, new Predicate() { …
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
2 answers

Guava EventBus and Singleton: Synchronization

I have a question regarding the principle of work of Guava EventBus. My objects are registered to EventBus. In 10 second time interval, message is sent to them, where processing is done and I compare some variable in object with singleton value.By…
nurgasemetey
  • 752
  • 3
  • 15
  • 39
1 2
3