public int getId() {
            if (id == 0) {
                throw new IllegalStateException("setId must be called before getId");
            }
            return id;
        }
Get {@link LogEntry} id. Throws an exception if {@link #setId(int)} has not be called previously.

@return The log id
main/src/main/java/cgeo/geocaching/log/LogEntry.java