package mightypork.gamecore.util.math.constraints.rect.proxy; import mightypork.gamecore.util.math.constraints.rect.Rect; /** * Pluggable rect bound adapter * * @author Ondřej Hruška (MightyPork) */ public class RectBoundAdapter extends RectAdapter implements PluggableRectBound { private RectBound backing = null; public RectBoundAdapter() { } public RectBoundAdapter(RectBound bound) { backing = bound; } @Override public void setRect(RectBound rect) { this.backing = rect; } @Override public Rect getSource() { return backing.getRect(); } }