Plex-FAWE/worldedit-core/src/main/java/com/boydti/fawe/beta/Trimable.java
Matt 96dcb95b7c
Javadoc and Formatting fixes. (#619)
Javadoc and Formatting fixes.

Also, extremely minor code changes which have been tested.
This commit is only part one of two commits that aim to fix problems with formatting in our project. In part two I will modify the Google Java Style Guide (since it closely matches our code style) for our project so there is guidance on how to format and document. 

* Updated PlotSquared URL
* Removed plugin acronyms
* Fixed a typo
* Fixed grammar
* Use modern block id's
* Update YouTube video URL
2020-10-05 13:41:41 -04:00

21 lines
574 B
Java

package com.boydti.fawe.beta;
/**
* Interface for objects that can be trimmed (memory related). Trimming will reduce its memory
* footprint.
*/
public interface Trimable {
/**
* Trims the object, reducing its memory footprint.
*
* @param aggressive if trimming should be aggressive e.g., Not returning early when the first
* element cannot be trimmed
* @return if this object is empty at the end of the trim, and can therefore be deleted
*/
boolean trim(boolean aggressive);
default void recycle() {
}
}