@Override protected Map<Class<? extends Annotation>, H.Method> annotationMethodLookup() { return C.Map(); }
@Override public Map<String, ConstraintViolation> violations() { return C.Map(this.violations); }
public ExcelWriter(boolean isXlsx, String dateFormat, Map<String, String> headerMapping, Map<String, String> fieldStylePatterns, $.Function<String, String> headerTransformer, String filter, boolean bigData) { this.isXlsx = isXlsx; this.dateFormat = dateFormat; this.headerMapping = headerMapping; this.fieldStylePatterns = null == fieldStylePatterns ? C.<String, String>Map() : fieldStylePatterns; this.filter = filter; this.headerTransformer = headerTransformer; this.bigData = bigData; }
Segment(Label start, HandlerMethodMetaInfo meta, InsnList instructions, ListIterator<AbstractInsnNode> itr, Transformer trans) { this.startLabel = start; this.meta = meta; this.instructions = instructions; this.itr = itr; this.trans = trans; this.handlers = C.Map( AbstractInsnNode.METHOD_INSN, new InvocationHandler(this, meta) ); trans.lblList.add(start); }
public static RequestSpec loadFixtures(List<String> fixtures) { RequestSpec rs = new RequestSpec(); rs.method = H.Method.POST; rs.headers.put(CONTENT_TYPE, H.Format.JSON.contentType()); rs.url = "/~/test/fixtures"; rs.json = JSON.toJSONString(C.Map("fixtures", fixtures)); return rs; }
public static RequestSpec generateTestData(String modelType, int number) { RequestSpec rs = new RequestSpec(); rs.method = H.Method.POST; rs.headers.put(CONTENT_TYPE, H.Format.JSON.contentType()); rs.url = "/~/test/generateTestData"; rs.json = JSON.toJSONString(C.Map("modelType", modelType, "number", number)); return rs; } }
public static RequestSpec loadFixtures(List<String> fixtures) { RequestSpec rs = new RequestSpec(); rs.method = H.Method.POST; rs.headers.put(CONTENT_TYPE, H.Format.JSON.contentType()); rs.url = "/~/test/fixtures"; rs.json = JSON.toJSONString(C.Map("fixtures", fixtures)); return rs; }
public _MappingStage withHeadMapping(Map<String, String> mapping) { if (mapping.isEmpty()) { return this; } Map<String, String> fliped = C.Map(mapping).flipped(); if (specialMappings != null) { specialMappings.putAll(fliped); } else { specialMappings = C.newMap(fliped); } return this; }
Segment(Label start, SenderMethodMetaInfo meta, InsnList instructions, ListIterator<AbstractInsnNode> itr, Transformer trans) { E.NPE(meta); this.startLabel = start; this.meta = meta; this.instructions = instructions; this.itr = itr; this.trans = trans; this.handlers = C.Map( AbstractInsnNode.METHOD_INSN, new InvocationHandler(this, meta) ); trans.lblList.add(start); }
Segment(Label start, SenderMethodMetaInfo meta, InsnList instructions, ListIterator<AbstractInsnNode> itr, Transformer trans) { E.NPE(meta); this.startLabel = start; this.meta = meta; this.instructions = instructions; this.itr = itr; this.trans = trans; this.handlers = C.Map( AbstractInsnNode.METHOD_INSN, new InvocationHandler(this, meta) ); trans.lblList.add(start); }
@Override public void onUpdate(ProgressGauge progressGauge) { Map<String, ProgressGauge> payload = C.Map("act_job_progress", progressGauge); app.getInstance(WebSocketConnectionManager.class).sendJsonToTagged(payload, jobProgressTag); } });
private void initVersion() { versionData = C.Map("act", Act.VERSION, "app", Act.appVersion()); version = new Unit(versionData); }
public static SObject lazyLoad(String key, IStorageService ss, String... attrs) { SObject sobj = lazyLoad(key, ss); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
public Map<String, Object> loadFixture(String fixtureName, DaoLocator daoLocator) { boolean isJson = fixtureName.endsWith(".json"); boolean isYaml = !isJson && (fixtureName.endsWith(".yaml") || fixtureName.endsWith(".yml")); E.unsupportedIfNot(isJson || isYaml, "fixture resource file type not supported: " + fixtureName); String content = getResourceAsString(fixtureName); if (null == content) { return C.Map(); } return isJson ? parseJson(content, daoLocator) : parse(content, daoLocator); }
public Unit(String name, Object val) { this.json = wrap(JSON.toJSONString(C.Map(name, val))); this.txt = wrap(S.string(val)); }
private static <T> T __load(String path, BeanSpec spec, Object hint, boolean ignoreResourceNotFound) { Map<String, Object> option = C.Map("value", path); ConfigResourceLoader loader = new ConfigResourceLoader(ignoreResourceNotFound); loader.init(option, spec, hint); return $.cast(loader.resource); }
private static <T> T __load(String path, BeanSpec spec, Object hint, boolean ignoreResourceNotFound) { Map<String, Object> option = C.Map("value", path); ConfigResourceLoader loader = new ConfigResourceLoader(ignoreResourceNotFound); loader.init(option, spec, hint); return $.cast(loader.resource); }
/** * Construct an SObject with key, file and attributes specified in * key1, val1, key2, val2... sequence * * @see #of(String, File, Map) */ public static SObject of(String key, File file, String... attrs) { SObject sobj = of(key, $.requireNotNull(file)); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
protected Map<String, String> getMeta(String key, boolean force) { if (noGet && !force) return C.Map(); Map<String, String> map = doGetMeta(keyWithContextPath(key)); setDefAttributes(key, map); return map; }
@Override protected EntityManagerFactory createEntityManagerFactory(PersistenceUnitInfo persistenceUnitInfo) { Map<String, Object> configuration = C.Map(); return new EntityManagerFactoryBuilderImpl( new PersistenceUnitInfoDescriptor(persistenceUnitInfo), configuration ).build(); } }