Created
November 22, 2019 10:02
-
-
Save jasongorman/8cccb3ac4682f446d14faef6902c2201 to your computer and use it in GitHub Desktop.
This file contains 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
void load(Parcel parcel){ | |
execute(() -> parcels.add(parcel)) | |
.when(() -> !isFull(), this); | |
} | |
Parcel unload(){ | |
return execute(() -> parcels.remove(parcels.size() - 1)) | |
.when(() -> !parcels.isEmpty(), this); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment