I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2a142705 authored by str4d's avatar str4d
Browse files

Use static int constants for State instead of Enums

Enums often require more than twice as much memory as static constants, and
should be strictly avoided on Android.
https://developer.android.com/training/articles/memory.html#Overhead

The advantage of this change is that client library users can directly compare
the status values they get from IRouterState to the constants, instead of
parsing a string representation of an Enum.
parent d878d2d8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment