Class Source.ZoomBoundFunction

  • All Implemented Interfaces:
    java.util.function.IntFunction<java.lang.Integer>
    Enclosing class:
    Source

    private static class Source.ZoomBoundFunction
    extends java.lang.Object
    implements java.util.function.IntFunction<java.lang.Integer>
    A common function for zoom constraints
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int max  
      private int min  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZoomBoundFunction​(int min, int max)
      Create a new bound for zooms
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer apply​(int value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • min

        private final int min
      • max

        private final int max
    • Constructor Detail

      • ZoomBoundFunction

        ZoomBoundFunction​(int min,
                          int max)
        Create a new bound for zooms
        Parameters:
        min - The min zoom
        max - The max zoom
    • Method Detail

      • apply

        public java.lang.Integer apply​(int value)
        Specified by:
        apply in interface java.util.function.IntFunction<java.lang.Integer>