Created
February 9, 2018 22:09
-
-
Save bandrzejczak/74b52059e7cb7c11953c24160700c3a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public long getPrice() { | |
return unsafe.getInt(objectOffset + priceOffset); | |
} | |
public void setPrice(final int price) { | |
unsafe.putInt(objectOffset + priceOffset, price); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment