Class Block

java.lang.Object
com.vividsolutions.jump.util.Block

public abstract class Block extends Object
Simply a chunk of code that can be passed around. Facilitates Smalltalk-like programming. Also useful as a "lexical closure" i.e. a chunk of code with variables having long lifetimes.

Typically only one of the #yield methods needs to be implemented. Which one depends on the context.

  • Constructor Details

    • Block

      public Block()
  • Method Details