com.atlassian.confluence.content.render.image
Class FreeMemoryAwareImageRenderPredicate

java.lang.Object
  extended by com.atlassian.confluence.content.render.image.FreeMemoryAwareImageRenderPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<ImageDimensions>

public class FreeMemoryAwareImageRenderPredicate
extends Object
implements com.google.common.base.Predicate<ImageDimensions>

A predicate which can decicide whether or not a given image stream is "safe" to render as a raster, given the currently available amount of free memory.

Since:
5.3

Constructor Summary
FreeMemoryAwareImageRenderPredicate()
           
 
Method Summary
 boolean apply(ImageDimensions input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

FreeMemoryAwareImageRenderPredicate

public FreeMemoryAwareImageRenderPredicate()
Method Detail

apply

public boolean apply(@Nullable
                     ImageDimensions input)
Specified by:
apply in interface com.google.common.base.Predicate<ImageDimensions>


Copyright © 2003–2015 Atlassian. All rights reserved.