/** * Supports the intention that HapiContext instances should not be altered e.g. from within a * Parser instance, but only explicitly from where the HapiContext instance is actually owned. * * @param context context to be made unmodifiable * @return an unmodifiable HapiContext */ private static HapiContext unmodifiableContext(HapiContext context) { return new UnmodifiableHapiContext(context); }
/** * Supports the intention that HapiContext instances should not be altered e.g. from within a * Parser instance, but only explicitly from where the HapiContext instance is actually owned. * * @param context context to be made unmodifiable * @return an unmodifiable HapiContext */ private static HapiContext unmodifiableContext(HapiContext context) { return new UnmodifiableHapiContext(context); }