Class Astral

  • public class Astral
    extends Object
    Provides programmatic access to ASTRAL representative sets. See the paper by Chandonia et. al. for more information. Example:
     Set<String> astralSet = Astral.getRepresentatives(Astral.AstralSet.NINETY_FIVE_175B);
    This class uses a multiton pattern with soft references for caching. In short: the first time you call the above, it will fetch the data from ASTRAL; the second time will (probably) not have to; and the instances can still be garbage-collected if necessary (meaning they don't require heap memory).