target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testLessSimpleProgram(){ List<Token> tList=new LinkedList<>(); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(TokenType.ID, "i")); tList.add(new TokenJb(TokenType.SEMICOLON,";")); tList.add(new TokenJb(TokenType.ID, "i")); tList.add(new TokenJb(TokenType.ASSIGNOP, "=")); ...
public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
@Test public void testComplexProgram(){ List<Token> tList = new LinkedList<>(); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(TokenType.ID, "i")); tList.add(new TokenJb(TokenType.SEMICOLON, ";")); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(TokenType.ID, "...
public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
@Test public void testComplexProgramSymbolTable(){ List<Token> tList = new LinkedList<>(); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(TokenType.ID, "i")); tList.add(new TokenJb(TokenType.SEMICOLON, ";")); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(Toke...
public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
@Test public void testM2AddProgram() { List<Token> tList = new LinkedList<>(); tList.add(new TokenJb(TokenType.COMMENT, "returns 10")); tList.add(new TokenJb(TokenType.COMMENT, "prints nothing")); tList.add(new TokenJb(TokenType.LONG_SYMBOL, "long")); tList.add(new TokenJb(TokenType.ID, "a")); tList.add(new TokenJb(Tok...
public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
@Test(expected=WordNotInLanguageGrammarException.class) public void testM2CondProgram() { List<Token> tList = new LinkedList<>(); tList.add(new TokenJb(TokenType.COMMENT, "returns 5")); tList.add(new TokenJb(TokenType.COMMENT, "prints nothing")); tList.add(new TokenJb(TokenType.BOOL_SYMBOL, "bool")); tList.add(new Toke...
public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
ASTGenerator { public ASTJb generateAST() { ASTJb ast = new ASTJb(); BlockNode rootNode = this.useBlockProduction(); ast.setRootNode(rootNode); return ast; } ASTGenerator(List<TargetGrammar.Reduction> reductions); ASTJb generateAST(); }
@Test public void testWriteToString() { final String htmlReport = reportWriter.write(report); Assert.assertTrue(true); }
@Override public String write(Report report) { try (final StringWriter writer = new StringWriter()) { reportTemplate.process(report, writer); return writer.toString(); } catch (TemplateException e) { throw new RuntimeException("Error populating default report HTML template '"+ reportTemplate.getName() +"': " + e.getMes...
HtmlReportWriter implements ReportWriter { @Override public String write(Report report) { try (final StringWriter writer = new StringWriter()) { reportTemplate.process(report, writer); return writer.toString(); } catch (TemplateException e) { throw new RuntimeException("Error populating default report HTML template '"+...
HtmlReportWriter implements ReportWriter { @Override public String write(Report report) { try (final StringWriter writer = new StringWriter()) { reportTemplate.process(report, writer); return writer.toString(); } catch (TemplateException e) { throw new RuntimeException("Error populating default report HTML template '"+...
HtmlReportWriter implements ReportWriter { @Override public String write(Report report) { try (final StringWriter writer = new StringWriter()) { reportTemplate.process(report, writer); return writer.toString(); } catch (TemplateException e) { throw new RuntimeException("Error populating default report HTML template '"+...
HtmlReportWriter implements ReportWriter { @Override public String write(Report report) { try (final StringWriter writer = new StringWriter()) { reportTemplate.process(report, writer); return writer.toString(); } catch (TemplateException e) { throw new RuntimeException("Error populating default report HTML template '"+...
@Test public void checkAndInstallConfigurationTest() throws IOException { String configName = "com.rbmhtechnology.vind:backend-solr:1.1.2"; service.checkAndInstallConfiguration(configName); assertTrue(service.configurationIsDeployed(configName)); }
protected void checkAndInstallConfiguration(String configName) throws IOException { this.checkAndInstallConfiguration(configName, false); }
CollectionManagementService { protected void checkAndInstallConfiguration(String configName) throws IOException { this.checkAndInstallConfiguration(configName, false); } }
CollectionManagementService { protected void checkAndInstallConfiguration(String configName) throws IOException { this.checkAndInstallConfiguration(configName, false); } CollectionManagementService(List<String> zkHosts); CollectionManagementService(List<String> zkHost, String ... repositories); protected CollectionMa...
CollectionManagementService { protected void checkAndInstallConfiguration(String configName) throws IOException { this.checkAndInstallConfiguration(configName, false); } CollectionManagementService(List<String> zkHosts); CollectionManagementService(List<String> zkHost, String ... repositories); protected CollectionMa...
CollectionManagementService { protected void checkAndInstallConfiguration(String configName) throws IOException { this.checkAndInstallConfiguration(configName, false); } CollectionManagementService(List<String> zkHosts); CollectionManagementService(List<String> zkHost, String ... repositories); protected CollectionMa...
@Test public void listRuntimeDependenciesTest() throws IOException, SolrServerException { List<String> runtimeDependencies = service.listRuntimeDependencies("my-collection"); assertThat(runtimeDependencies, contains("org.apache.solr:solr-cell:6.1.0", "com.rbmhtechnology.solr.test:test-jar:1.0")); }
protected List<String> listRuntimeDependencies(String collectionName) throws IOException, SolrServerException { logger.debug("Checking runtime-dependencies for collection {}", collectionName); ModifiableSolrParams params = new ModifiableSolrParams().set("file",RUNTIME_LIB_FILE_NAME); SolrRequest request = new QueryRequ...
CollectionManagementService { protected List<String> listRuntimeDependencies(String collectionName) throws IOException, SolrServerException { logger.debug("Checking runtime-dependencies for collection {}", collectionName); ModifiableSolrParams params = new ModifiableSolrParams().set("file",RUNTIME_LIB_FILE_NAME); SolrR...
CollectionManagementService { protected List<String> listRuntimeDependencies(String collectionName) throws IOException, SolrServerException { logger.debug("Checking runtime-dependencies for collection {}", collectionName); ModifiableSolrParams params = new ModifiableSolrParams().set("file",RUNTIME_LIB_FILE_NAME); SolrR...
CollectionManagementService { protected List<String> listRuntimeDependencies(String collectionName) throws IOException, SolrServerException { logger.debug("Checking runtime-dependencies for collection {}", collectionName); ModifiableSolrParams params = new ModifiableSolrParams().set("file",RUNTIME_LIB_FILE_NAME); SolrR...
CollectionManagementService { protected List<String> listRuntimeDependencies(String collectionName) throws IOException, SolrServerException { logger.debug("Checking runtime-dependencies for collection {}", collectionName); ModifiableSolrParams params = new ModifiableSolrParams().set("file",RUNTIME_LIB_FILE_NAME); SolrR...
@Test public void getVersionAndInstallIfNecessaryTest() { Long version = service.getVersionAndInstallIfNecessary("com.rbmhtechnology.solr.test:test-jar:1.0"); assertEquals(1L, version, 0); }
public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".system",query); if(response.getResu...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
@Test public void getVersionAndInstallIfNecessaryTest2() { Long version = service.getVersionAndInstallIfNecessary("org.apache.solr:solr-cell:6.1.0"); assertEquals(1L, version, 0); }
public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".system",query); if(response.getResu...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
CollectionManagementService { public Long getVersionAndInstallIfNecessary(String dependency) { try (CloudSolrClient client = createCloudSolrClient()) { SolrQuery query = new SolrQuery("blobName:"+Utils.toBlobName(dependency)); query.setSort("version", SolrQuery.ORDER.desc); QueryResponse response = client.query(".syste...
@Test public void checkAndInstallRuntimeDependenciesTest() { Map<String,Long> dependencies = service.checkAndInstallRuntimeDependencies("my-collection"); assertThat(dependencies, hasEntry("org.apache.solr_solr-cell_6.1.0", 1L)); assertThat(dependencies, hasEntry("com.rbmhtechnology.solr.test_test-jar_1.0",1L)); }
protected Map<String,Long> checkAndInstallRuntimeDependencies(String collectionName) { List<String> dependencies = Collections.emptyList(); try { dependencies = listRuntimeDependencies(collectionName); } catch (SolrServerException | IOException e) { logger.warn("Cannot get runtime dependencies from configuration for co...
CollectionManagementService { protected Map<String,Long> checkAndInstallRuntimeDependencies(String collectionName) { List<String> dependencies = Collections.emptyList(); try { dependencies = listRuntimeDependencies(collectionName); } catch (SolrServerException | IOException e) { logger.warn("Cannot get runtime dependen...
CollectionManagementService { protected Map<String,Long> checkAndInstallRuntimeDependencies(String collectionName) { List<String> dependencies = Collections.emptyList(); try { dependencies = listRuntimeDependencies(collectionName); } catch (SolrServerException | IOException e) { logger.warn("Cannot get runtime dependen...
CollectionManagementService { protected Map<String,Long> checkAndInstallRuntimeDependencies(String collectionName) { List<String> dependencies = Collections.emptyList(); try { dependencies = listRuntimeDependencies(collectionName); } catch (SolrServerException | IOException e) { logger.warn("Cannot get runtime dependen...
CollectionManagementService { protected Map<String,Long> checkAndInstallRuntimeDependencies(String collectionName) { List<String> dependencies = Collections.emptyList(); try { dependencies = listRuntimeDependencies(collectionName); } catch (SolrServerException | IOException e) { logger.warn("Cannot get runtime dependen...
@Test public void addOrUpdateRuntimeDependenciesTest() { service.addOrUpdateRuntimeDependencies(Collections.singletonMap("com.rbmhtechnology.solr.test_test-jar_1.0",1L),"my-collection"); }
protected void addOrUpdateRuntimeDependencies(Map<String, Long> runtimeDependencies, String collectionName) { logger.info("Adding runtime-dependencies for {}", collectionName); for(String blobName : runtimeDependencies.keySet()) { RuntimeLibRequest request = new RuntimeLibRequest(RuntimeLibRequestType.add, blobName, ru...
CollectionManagementService { protected void addOrUpdateRuntimeDependencies(Map<String, Long> runtimeDependencies, String collectionName) { logger.info("Adding runtime-dependencies for {}", collectionName); for(String blobName : runtimeDependencies.keySet()) { RuntimeLibRequest request = new RuntimeLibRequest(RuntimeLi...
CollectionManagementService { protected void addOrUpdateRuntimeDependencies(Map<String, Long> runtimeDependencies, String collectionName) { logger.info("Adding runtime-dependencies for {}", collectionName); for(String blobName : runtimeDependencies.keySet()) { RuntimeLibRequest request = new RuntimeLibRequest(RuntimeLi...
CollectionManagementService { protected void addOrUpdateRuntimeDependencies(Map<String, Long> runtimeDependencies, String collectionName) { logger.info("Adding runtime-dependencies for {}", collectionName); for(String blobName : runtimeDependencies.keySet()) { RuntimeLibRequest request = new RuntimeLibRequest(RuntimeLi...
CollectionManagementService { protected void addOrUpdateRuntimeDependencies(Map<String, Long> runtimeDependencies, String collectionName) { logger.info("Adding runtime-dependencies for {}", collectionName); for(String blobName : runtimeDependencies.keySet()) { RuntimeLibRequest request = new RuntimeLibRequest(RuntimeLi...
@Test public void testSearch() throws Exception { final DocumentFactoryBuilder docFactoryBuilder = new DocumentFactoryBuilder("asset"); FieldDescriptor descriptor = new FieldDescriptorBuilder().setFacet(true).buildTextField("text"); docFactoryBuilder.addField(descriptor); DocumentFactory documents = docFactoryBuilder.b...
@Override public boolean execute(Update update,DocumentFactory factory) { final boolean isUpdatable = factory.isUpdatable() && factory.getFields().values().stream() .allMatch( descriptor -> descriptor.isUpdate()); if (isUpdatable) { final SolrInputDocument sdoc = getSolrUpdateDocument(update, factory.getType()); try { ...
SolrSearchServer extends SmartSearchServerBase { @Override public boolean execute(Update update,DocumentFactory factory) { final boolean isUpdatable = factory.isUpdatable() && factory.getFields().values().stream() .allMatch( descriptor -> descriptor.isUpdate()); if (isUpdatable) { final SolrInputDocument sdoc = getSolr...
SolrSearchServer extends SmartSearchServerBase { @Override public boolean execute(Update update,DocumentFactory factory) { final boolean isUpdatable = factory.isUpdatable() && factory.getFields().values().stream() .allMatch( descriptor -> descriptor.isUpdate()); if (isUpdatable) { final SolrInputDocument sdoc = getSolr...
SolrSearchServer extends SmartSearchServerBase { @Override public boolean execute(Update update,DocumentFactory factory) { final boolean isUpdatable = factory.isUpdatable() && factory.getFields().values().stream() .allMatch( descriptor -> descriptor.isUpdate()); if (isUpdatable) { final SolrInputDocument sdoc = getSolr...
SolrSearchServer extends SmartSearchServerBase { @Override public boolean execute(Update update,DocumentFactory factory) { final boolean isUpdatable = factory.isUpdatable() && factory.getFields().values().stream() .allMatch( descriptor -> descriptor.isUpdate()); if (isUpdatable) { final SolrInputDocument sdoc = getSolr...
@Test public void testIndex() throws Exception { FieldDescriptor<String> title = new FieldDescriptorBuilder<>().setFullText(true).buildTextField("title"); SingleValueFieldDescriptor.DateFieldDescriptor<ZonedDateTime> created = new FieldDescriptorBuilder<>().setFacet(true).buildDateField("created"); MultiValueFieldDescr...
@Override public IndexResult index(Document ... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); }
SolrSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document ... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } }
SolrSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document ... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } SolrSearchServer(...
SolrSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document ... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } SolrSearchServer(...
SolrSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document ... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } SolrSearchServer(...
@Test @Ignore public void testFilterSerialization() { final ChildrenFilterSerializer serializer = new ChildrenFilterSerializer(parent, child, null, false, true); final Filter.DescriptorFilter<String> parentFilter = new Filter.DescriptorFilter<>(parent_value, "p_v", Scope.Facet); final Filter.DescriptorFilter<String> sh...
public String serialize(Filter filter){ final Filter normalizedFilter = normalize(filter); if (AndFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((AndFilter)normalizedFilter); else if (OrFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((OrFilter)normalizedFilter)...
ChildrenFilterSerializer { public String serialize(Filter filter){ final Filter normalizedFilter = normalize(filter); if (AndFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((AndFilter)normalizedFilter); else if (OrFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize(...
ChildrenFilterSerializer { public String serialize(Filter filter){ final Filter normalizedFilter = normalize(filter); if (AndFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((AndFilter)normalizedFilter); else if (OrFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize(...
ChildrenFilterSerializer { public String serialize(Filter filter){ final Filter normalizedFilter = normalize(filter); if (AndFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((AndFilter)normalizedFilter); else if (OrFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize(...
ChildrenFilterSerializer { public String serialize(Filter filter){ final Filter normalizedFilter = normalize(filter); if (AndFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize((AndFilter)normalizedFilter); else if (OrFilter.class.isAssignableFrom(normalizedFilter.getClass())) return serialize(...
@Test public void testNormalization() { final ChildrenFilterSerializer serializer = new ChildrenFilterSerializer(parent, child, null, false, false); Filter parentValueFilter = new OrFilter(eq(parent_value,"value1"), eq(parent_value,"value2")); Filter sharedValueFilter = new OrFilter(new OrFilter(eq(shared_value,"shared...
private Filter normalize(AndFilter filter){ final Set<Filter> normalizedFilters = filter.getChildren().stream() .map(this::normalize) .collect(Collectors.toSet()); final Set<Filter> normalizedChildren = normalizedFilters.stream() .filter(f -> !f.getType().equals(filter.getType()) && !f.getType().equals("OrFilter")) .co...
ChildrenFilterSerializer { private Filter normalize(AndFilter filter){ final Set<Filter> normalizedFilters = filter.getChildren().stream() .map(this::normalize) .collect(Collectors.toSet()); final Set<Filter> normalizedChildren = normalizedFilters.stream() .filter(f -> !f.getType().equals(filter.getType()) && !f.getTyp...
ChildrenFilterSerializer { private Filter normalize(AndFilter filter){ final Set<Filter> normalizedFilters = filter.getChildren().stream() .map(this::normalize) .collect(Collectors.toSet()); final Set<Filter> normalizedChildren = normalizedFilters.stream() .filter(f -> !f.getType().equals(filter.getType()) && !f.getTyp...
ChildrenFilterSerializer { private Filter normalize(AndFilter filter){ final Set<Filter> normalizedFilters = filter.getChildren().stream() .map(this::normalize) .collect(Collectors.toSet()); final Set<Filter> normalizedChildren = normalizedFilters.stream() .filter(f -> !f.getType().equals(filter.getType()) && !f.getTyp...
ChildrenFilterSerializer { private Filter normalize(AndFilter filter){ final Set<Filter> normalizedFilters = filter.getChildren().stream() .map(this::normalize) .collect(Collectors.toSet()); final Set<Filter> normalizedChildren = normalizedFilters.stream() .filter(f -> !f.getType().equals(filter.getType()) && !f.getTyp...
@Test public void testWriteToString() { final String jsonReport = reportWriter.write(report); Assert.assertTrue(true); }
@Override public String write(Report report) { try { return mapper.writeValueAsString(report); } catch (JsonProcessingException e) { log.error("Error writing report as Json string: {}", e.getMessage(), e); return null; } }
JsonReportWriter implements ReportWriter { @Override public String write(Report report) { try { return mapper.writeValueAsString(report); } catch (JsonProcessingException e) { log.error("Error writing report as Json string: {}", e.getMessage(), e); return null; } } }
JsonReportWriter implements ReportWriter { @Override public String write(Report report) { try { return mapper.writeValueAsString(report); } catch (JsonProcessingException e) { log.error("Error writing report as Json string: {}", e.getMessage(), e); return null; } } JsonReportWriter(); }
JsonReportWriter implements ReportWriter { @Override public String write(Report report) { try { return mapper.writeValueAsString(report); } catch (JsonProcessingException e) { log.error("Error writing report as Json string: {}", e.getMessage(), e); return null; } } JsonReportWriter(); @Override String write(Report repo...
JsonReportWriter implements ReportWriter { @Override public String write(Report report) { try { return mapper.writeValueAsString(report); } catch (JsonProcessingException e) { log.error("Error writing report as Json string: {}", e.getMessage(), e); return null; } } JsonReportWriter(); @Override String write(Report repo...
@Test public void test() throws SyntaxError { HashMap<String, String> dateIntervals = new HashMap<>(); dateIntervals.put("after","[NOW+23DAYS/DAY TO *]"); dateIntervals.put("before","[* TO NOW+23DAYS/DAY]"); HashMap<String, String> numberIntervals = new HashMap<>(); numberIntervals.put("bigger","[23 TO *]"); numberInte...
public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldDescriptor)fiel...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
@Test public void testComplexField() throws SyntaxError { HashMap<String, String> dateIntervals = new HashMap<>(); dateIntervals.put("after","[NOW+23DAYS/DAY TO *]"); dateIntervals.put("before","[* TO NOW+23DAYS/DAY]"); HashMap<String, String> numberIntervals = new HashMap<>(); numberIntervals.put("bigger","[23 TO *]")...
public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldDescriptor)fiel...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
FacetMapper { public static <T> Facet stringQuery2FacetMapper(FieldDescriptor<T> field,String facetName, Map<String,String> query) { final String stringQuery = query.values().iterator().next(); Class<T> type = field.getType(); if (ComplexFieldDescriptor.class.isAssignableFrom(field.getClass())) { type = ((ComplexFieldD...
@Test @Ignore public void testGetDocument() throws Exception { MetadataProvider p = new RESTMetadataProvider( "https: "rbmh", "admin", "global", "1315204862832-1123067022", "asset", "user", "passw" ); Asset a = p.getObject("1359078847993-766700833",Asset.class); Assert.assertEquals("Sean Pettit - Portrait", a.getTitle(...
@Override public Document getDocument(Document document, DocumentFactory factory) throws IOException { HttpMethod request = new GetMethod(baseURL); request.addRequestHeader("Authorization", String.format("Bearer %s", bearerToken)); request.setPath(path + document.getId()); int status = client.executeMethod(request); if...
RESTMetadataProvider implements MetadataProvider { @Override public Document getDocument(Document document, DocumentFactory factory) throws IOException { HttpMethod request = new GetMethod(baseURL); request.addRequestHeader("Authorization", String.format("Bearer %s", bearerToken)); request.setPath(path + document.getId...
RESTMetadataProvider implements MetadataProvider { @Override public Document getDocument(Document document, DocumentFactory factory) throws IOException { HttpMethod request = new GetMethod(baseURL); request.addRequestHeader("Authorization", String.format("Bearer %s", bearerToken)); request.setPath(path + document.getId...
RESTMetadataProvider implements MetadataProvider { @Override public Document getDocument(Document document, DocumentFactory factory) throws IOException { HttpMethod request = new GetMethod(baseURL); request.addRequestHeader("Authorization", String.format("Bearer %s", bearerToken)); request.setPath(path + document.getId...
RESTMetadataProvider implements MetadataProvider { @Override public Document getDocument(Document document, DocumentFactory factory) throws IOException { HttpMethod request = new GetMethod(baseURL); request.addRequestHeader("Authorization", String.format("Bearer %s", bearerToken)); request.setPath(path + document.getId...
@Test @Ignore public void logTest(){ final ElasticWriter elasticWriter = new ElasticWriter("localhost", "9200", "logindex"); elasticWriter.log(new FullTextEntry()); }
@Override public void log(MonitoringEntry log) { logger.debug("Indexing log entry: {}", log.toJson()); elasticClient.put(log.toJson()); }
ElasticWriter extends MonitoringWriter { @Override public void log(MonitoringEntry log) { logger.debug("Indexing log entry: {}", log.toJson()); elasticClient.put(log.toJson()); } }
ElasticWriter extends MonitoringWriter { @Override public void log(MonitoringEntry log) { logger.debug("Indexing log entry: {}", log.toJson()); elasticClient.put(log.toJson()); } ElasticWriter(String elasticHost, String elasticPort, String elasticIndex); }
ElasticWriter extends MonitoringWriter { @Override public void log(MonitoringEntry log) { logger.debug("Indexing log entry: {}", log.toJson()); elasticClient.put(log.toJson()); } ElasticWriter(String elasticHost, String elasticPort, String elasticIndex); @Override void log(MonitoringEntry log); }
ElasticWriter extends MonitoringWriter { @Override public void log(MonitoringEntry log) { logger.debug("Indexing log entry: {}", log.toJson()); elasticClient.put(log.toJson()); } ElasticWriter(String elasticHost, String elasticPort, String elasticIndex); @Override void log(MonitoringEntry log); }
@Test public void setValuesTest() { Document doc = factory.createDoc("idTest"); doc.setValues("multipleStringField","1","2","3"); Collection<Object> values = new ArrayList<>(); values.add("4"); values.add("5"); doc.setValues("multipleStringField", values); Collection<Object> invalidValues = new ArrayList<>(); invalidVa...
public Document createDoc(String id) { return new DocumentImpl(id, this.type); }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
@Test public void addValueTest() { Document doc = factory.createDoc("idTest"); doc.addValue("multipleStringField", "0"); doc.addValue("multipleStringField", "4"); exception.expect(IllegalArgumentException.class); doc.addValue("singleStringField", "5"); doc.addValue("multipleStringField", 4); }
public Document createDoc(String id) { return new DocumentImpl(id, this.type); }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
@Test public void removeValueTest() { Document doc = factory.createDoc("idTest"); doc.setValues("multipleStringField","1","2","3"); doc.removeValue("multipleStringField","1"); exception.expect(IllegalArgumentException.class); doc.removeValue("multipleStringField",1); }
public Document createDoc(String id) { return new DocumentImpl(id, this.type); }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
@Test public void getValueTest() { Document doc = factory.createDoc("idTest"); doc.setValues("multipleStringField","1","2","3"); doc.setValue("singleStringField", "4"); Assert.assertEquals("get single value", doc.getValue("singleStringField"),"4"); exception.expect(IllegalArgumentException.class); doc.getValue("imagina...
public Document createDoc(String id) { return new DocumentImpl(id, this.type); }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } }
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
DocumentFactory { public Document createDoc(String id) { return new DocumentImpl(id, this.type); } protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields); protected DocumentFactory(String type,boolean updatable, Map<String, FieldDescriptor<?>> fields, Map<String, FieldDescrip...
@Test public void indexTest(){ server.clearIndex(); final DocumentFactoryBuilder docFactoryBuilder = new DocumentFactoryBuilder("TestDoc"); final FieldDescriptor descriptor = new FieldDescriptorBuilder().setFacet(true).buildTextField("title"); docFactoryBuilder.addField(descriptor); final DocumentFactory documents = do...
@Override public IndexResult index(Document... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); }
ElasticSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } }
ElasticSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } ElasticSearchSe...
ElasticSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } ElasticSearchSe...
ElasticSearchServer extends SmartSearchServerBase { @Override public IndexResult index(Document... docs) { Asserts.notNull(docs,"Document to index should not be null."); Asserts.check(docs.length > 0, "Should be at least one document to index."); return indexMultipleDocuments(Arrays.asList(docs), -1); } ElasticSearchSe...
@Test public void deleteTest(){ server.clearIndex(); final DocumentFactoryBuilder docFactoryBuilder = new DocumentFactoryBuilder("TestDoc"); final SingleValueFieldDescriptor.TextFieldDescriptor<String> descriptor = new FieldDescriptorBuilder() .setFacet(true) .setFullText(true) .buildTextField("title"); docFactoryBuild...
@Override public DeleteResult delete(Document doc) { return deleteWithin(doc, -1); }
ElasticSearchServer extends SmartSearchServerBase { @Override public DeleteResult delete(Document doc) { return deleteWithin(doc, -1); } }
ElasticSearchServer extends SmartSearchServerBase { @Override public DeleteResult delete(Document doc) { return deleteWithin(doc, -1); } ElasticSearchServer(); ElasticSearchServer(ElasticVindClient client); protected ElasticSearchServer(ElasticVindClient client, boolean check); }
ElasticSearchServer extends SmartSearchServerBase { @Override public DeleteResult delete(Document doc) { return deleteWithin(doc, -1); } ElasticSearchServer(); ElasticSearchServer(ElasticVindClient client); protected ElasticSearchServer(ElasticVindClient client, boolean check); @Override Object getBackend(); @Overrid...
ElasticSearchServer extends SmartSearchServerBase { @Override public DeleteResult delete(Document doc) { return deleteWithin(doc, -1); } ElasticSearchServer(); ElasticSearchServer(ElasticVindClient client); protected ElasticSearchServer(ElasticVindClient client, boolean check); @Override Object getBackend(); @Overrid...
@Test public void configurationIsDeployedTest() throws IOException { assertTrue(service.configurationIsDeployed("com.rbmhtechnology.solr.test:test-config:1.0")); assertFalse(service.configurationIsDeployed("com.rbmhtechnology.solr.test:wrong-config:1.0")); }
protected boolean configurationIsDeployed(String configName) throws IOException { logger.debug("Checking if config '{}' is present", configName); ConfigSetAdminRequest.List list = new ConfigSetAdminRequest.List(); try (CloudSolrClient client = createCloudSolrClient()) { final ConfigSetAdminResponse.List configList = li...
CollectionManagementService { protected boolean configurationIsDeployed(String configName) throws IOException { logger.debug("Checking if config '{}' is present", configName); ConfigSetAdminRequest.List list = new ConfigSetAdminRequest.List(); try (CloudSolrClient client = createCloudSolrClient()) { final ConfigSetAdmi...
CollectionManagementService { protected boolean configurationIsDeployed(String configName) throws IOException { logger.debug("Checking if config '{}' is present", configName); ConfigSetAdminRequest.List list = new ConfigSetAdminRequest.List(); try (CloudSolrClient client = createCloudSolrClient()) { final ConfigSetAdmi...
CollectionManagementService { protected boolean configurationIsDeployed(String configName) throws IOException { logger.debug("Checking if config '{}' is present", configName); ConfigSetAdminRequest.List list = new ConfigSetAdminRequest.List(); try (CloudSolrClient client = createCloudSolrClient()) { final ConfigSetAdmi...
CollectionManagementService { protected boolean configurationIsDeployed(String configName) throws IOException { logger.debug("Checking if config '{}' is present", configName); ConfigSetAdminRequest.List list = new ConfigSetAdminRequest.List(); try (CloudSolrClient client = createCloudSolrClient()) { final ConfigSetAdmi...
@Test public void testMacroContext() throws Exception { final MacroContext context = new MacroContext("A=a1, B=b1"); assertThat(context.getValue("A"), equalTo("a1")); assertThat(context.getValue("B"), equalTo("b1")); context.pushMacros("A=a2"); assertThat(context.getValue("A"), equalTo("a2")); assertThat(context.getVal...
public MacroContext(final String names_and_values) throws Exception { pushMacros(names_and_values); }
MacroContext implements MacroValueProvider { public MacroContext(final String names_and_values) throws Exception { pushMacros(names_and_values); } }
MacroContext implements MacroValueProvider { public MacroContext(final String names_and_values) throws Exception { pushMacros(names_and_values); } MacroContext(final String names_and_values); }
MacroContext implements MacroValueProvider { public MacroContext(final String names_and_values) throws Exception { pushMacros(names_and_values); } MacroContext(final String names_and_values); void pushMacros(final String names_and_values); void popMacros(); @Override String getValue(final String name); String resolveMa...
MacroContext implements MacroValueProvider { public MacroContext(final String names_and_values) throws Exception { pushMacros(names_and_values); } MacroContext(final String names_and_values); void pushMacros(final String names_and_values); void popMacros(); @Override String getValue(final String name); String resolveMa...
@Test public void testToString() { assertNotNull(ConfigPv.builder().build().toString()); assertNotNull(ConfigPv.builder().readbackPvName("a").build().toString()); assertNotNull(ConfigPv.builder().readbackPvName("").build().toString()); }
@Override public String toString() { return new StringBuffer() .append("PV name=").append(pvName) .append(", readback PV name=").append(readbackPvName) .append(", readOnly=").append(readOnly) .toString(); }
ConfigPv implements Comparable<ConfigPv> { @Override public String toString() { return new StringBuffer() .append("PV name=").append(pvName) .append(", readback PV name=").append(readbackPvName) .append(", readOnly=").append(readOnly) .toString(); } }
ConfigPv implements Comparable<ConfigPv> { @Override public String toString() { return new StringBuffer() .append("PV name=").append(pvName) .append(", readback PV name=").append(readbackPvName) .append(", readOnly=").append(readOnly) .toString(); } }
ConfigPv implements Comparable<ConfigPv> { @Override public String toString() { return new StringBuffer() .append("PV name=").append(pvName) .append(", readback PV name=").append(readbackPvName) .append(", readOnly=").append(readOnly) .toString(); } @Override boolean equals(Object other); @Override int hashCode(); @Ov...
ConfigPv implements Comparable<ConfigPv> { @Override public String toString() { return new StringBuffer() .append("PV name=").append(pvName) .append(", readback PV name=").append(readbackPvName) .append(", readOnly=").append(readOnly) .toString(); } @Override boolean equals(Object other); @Override int hashCode(); @Ov...
@Test public void testCompareTo(){ ConfigPv configPV1 = ConfigPv.builder().pvName("a").readbackPvName("b").readOnly(true).build(); ConfigPv configPV2 = ConfigPv.builder().pvName("a").readbackPvName("b").readOnly(true).build(); ConfigPv configPV3 = ConfigPv.builder().pvName("b").readbackPvName("b").readOnly(true).build(...
@Override public int compareTo(ConfigPv other) { return pvName.compareTo(other.getPvName()); }
ConfigPv implements Comparable<ConfigPv> { @Override public int compareTo(ConfigPv other) { return pvName.compareTo(other.getPvName()); } }
ConfigPv implements Comparable<ConfigPv> { @Override public int compareTo(ConfigPv other) { return pvName.compareTo(other.getPvName()); } }
ConfigPv implements Comparable<ConfigPv> { @Override public int compareTo(ConfigPv other) { return pvName.compareTo(other.getPvName()); } @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); @Override int compareTo(ConfigPv other); }
ConfigPv implements Comparable<ConfigPv> { @Override public int compareTo(ConfigPv other) { return pvName.compareTo(other.getPvName()); } @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); @Override int compareTo(ConfigPv other); }
@Test public void testToString() { SnapshotItem item = SnapshotItem.builder() .configPv(ConfigPv.builder().pvName("pvname").build()) .build(); assertNotNull(item.toString()); item.setValue(VType.toVType(1)); assertNotNull(item.toString()); item.setReadbackValue(VType.toVType(1.1)); assertNotNull(item.toString()); asser...
@Override public String toString() { return new StringBuffer() .append("value=") .append(value != null ? value.toString() : "READ FAILED") .append(", config pv=").append(configPv.toString()) .append(readbackValue != null ? (", readback pv=" + readbackValue.toString()) : (", readback pv=READ_FAILED")) .toString(); }
SnapshotItem { @Override public String toString() { return new StringBuffer() .append("value=") .append(value != null ? value.toString() : "READ FAILED") .append(", config pv=").append(configPv.toString()) .append(readbackValue != null ? (", readback pv=" + readbackValue.toString()) : (", readback pv=READ_FAILED")) .to...
SnapshotItem { @Override public String toString() { return new StringBuffer() .append("value=") .append(value != null ? value.toString() : "READ FAILED") .append(", config pv=").append(configPv.toString()) .append(readbackValue != null ? (", readback pv=" + readbackValue.toString()) : (", readback pv=READ_FAILED")) .to...
SnapshotItem { @Override public String toString() { return new StringBuffer() .append("value=") .append(value != null ? value.toString() : "READ FAILED") .append(", config pv=").append(configPv.toString()) .append(readbackValue != null ? (", readback pv=" + readbackValue.toString()) : (", readback pv=READ_FAILED")) .to...
SnapshotItem { @Override public String toString() { return new StringBuffer() .append("value=") .append(value != null ? value.toString() : "READ FAILED") .append(", config pv=").append(configPv.toString()) .append(readbackValue != null ? (", readback pv=" + readbackValue.toString()) : (", readback pv=READ_FAILED")) .to...
@Test public void TestMultiplyDouble() { assertEquals(0d, SafeMultiply.multiply(3d, 0d)); assertEquals(18d, SafeMultiply.multiply(3d, 6d)); assertEquals(-18d, SafeMultiply.multiply(-3d, 6d)); assertEquals(18d, SafeMultiply.multiply(-3d, -6d)); assertEquals(Double.MAX_VALUE, SafeMultiply.multiply(Double.MAX_VALUE, 6d));...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyFloat() { assertEquals(0f, SafeMultiply.multiply(3f, 0f)); assertEquals(18f, SafeMultiply.multiply(3f, 6f)); assertEquals(-18f, SafeMultiply.multiply(-3f, 6f)); assertEquals(18f, SafeMultiply.multiply(-3f, -6f)); assertEquals(Float.MAX_VALUE, SafeMultiply.multiply(Float.MAX_VALUE, 6f)); as...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyULong() { final BigInteger ULONG_MAX = BigInteger.valueOf(9223372036854775807L).multiply(BigInteger.valueOf(2)).add(BigInteger.valueOf(1)); assertEquals(ULong.valueOf(0), SafeMultiply.multiply(ULong.valueOf(3), ULong.valueOf(0))); assertEquals(ULong.valueOf(18), SafeMultiply.multiply(ULong...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyLong() { assertEquals(0L, SafeMultiply.multiply(3L, 0L)); assertEquals(18L, SafeMultiply.multiply(3L, 6L)); assertEquals(-18L, SafeMultiply.multiply(-3L, 6L)); assertEquals(18L, SafeMultiply.multiply(-3L, -6L)); assertEquals(Long.MAX_VALUE, SafeMultiply.multiply(Long.MAX_VALUE, 6L)); asser...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyUInteger() { final long UINT_MAX = 4294967295L; assertEquals(UInteger.valueOf(0), SafeMultiply.multiply(UInteger.valueOf(3), UInteger.valueOf(0))); assertEquals(UInteger.valueOf(18), SafeMultiply.multiply(UInteger.valueOf(3), UInteger.valueOf(6))); assertEquals(UInteger.valueOf((int) UINT_...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyInteger() { assertEquals(0, SafeMultiply.multiply(3, 0)); assertEquals(18, SafeMultiply.multiply(3, 6)); assertEquals(-18, SafeMultiply.multiply(-3, 6)); assertEquals(18, SafeMultiply.multiply(-3, -6)); assertEquals(Integer.MAX_VALUE, SafeMultiply.multiply(Integer.MAX_VALUE, 6)); assertEqu...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyUShort() { final int USHORT_MAX = 65535; assertEquals(UShort.valueOf(Short.parseShort("0")), SafeMultiply.multiply(UShort.valueOf(Short.parseShort("3")), UShort.valueOf(Short.parseShort("0")))); assertEquals(UShort.valueOf(Short.parseShort("18")), SafeMultiply.multiply(UShort.valueOf(Short...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void testDeleteConfiguration() { services.deleteNode("a"); verify(nodeDAO, atLeast(1)).deleteNode("a"); reset(nodeDAO); }
@Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snaps...
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snaps...
@Test public void TestMultiplyShort() { assertEquals(Short.valueOf("0"), SafeMultiply.multiply(Short.valueOf("3"), Short.valueOf("0"))); assertEquals(Short.valueOf("18"), SafeMultiply.multiply(Short.valueOf("3"), Short.valueOf("6"))); assertEquals(Short.valueOf("-18"), SafeMultiply.multiply(Short.valueOf("-3"), Short.v...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyUByte() { final int UBYTE_MAX = 255; assertEquals(UByte.valueOf(Byte.parseByte("0")), SafeMultiply.multiply(UByte.valueOf(Byte.parseByte("3")), UByte.valueOf(Byte.parseByte("0")))); assertEquals(UByte.valueOf(Byte.parseByte("18")), SafeMultiply.multiply(UByte.valueOf(Byte.parseByte("3")), ...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyByte() { assertEquals(Byte.valueOf("0"), SafeMultiply.multiply(Byte.valueOf("3"), Byte.valueOf("0"))); assertEquals(Byte.valueOf("18"), SafeMultiply.multiply(Byte.valueOf("3"), Byte.valueOf("6"))); assertEquals(Byte.valueOf("-18"), SafeMultiply.multiply(Byte.valueOf("-3"), Byte.valueOf("6"...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyWithDouble() { assertEquals(18d, SafeMultiply.multiply(6d, 3d)); assertEquals(-18d, SafeMultiply.multiply(6d, -3d)); assertEquals(-18d, SafeMultiply.multiply(-6d, 3d)); assertEquals(18f, SafeMultiply.multiply(6f, 3d)); assertEquals(-18f, SafeMultiply.multiply(6f, -3d)); assertEquals(-18f, ...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVDouble() { VDouble goodResult_1 = VDouble.of(Double.valueOf(0), alarm_1, time_1, display_1); VDouble goodResult_2 = VDouble.of(Double.valueOf(18), alarm_1, time_1, display_1); VDouble goodResult_3 = VDouble.of(Double.valueOf(-18), alarm_1, time_1, display_1); VDouble number_1 = VDouble.of...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVFloat() { VFloat goodResult_1 = VFloat.of(Float.valueOf(0), alarm_1, time_1, display_1); VFloat goodResult_2 = VFloat.of(Float.valueOf(18), alarm_1, time_1, display_1); VFloat goodResult_3 = VFloat.of(Float.valueOf(-18), alarm_1, time_1, display_1); VFloat number_1 = VFloat.of(Float.value...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVULong() { final BigInteger ULONG_MAX = BigInteger.valueOf(9223372036854775807L).multiply(BigInteger.valueOf(2)).add(BigInteger.valueOf(1)); VULong goodResult_1 = VULong.of(ULong.valueOf(0), alarm_1, time_1, display_1); VULong goodResult_2 = VULong.of(ULong.valueOf(18), alarm_1, time_1, di...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVLong() { VLong goodResult_1 = VLong.of(Long.valueOf(0), alarm_1, time_1, display_1); VLong goodResult_2 = VLong.of(Long.valueOf(18), alarm_1, time_1, display_1); VLong goodResult_3 = VLong.of(Long.valueOf(-18), alarm_1, time_1, display_1); VLong number_1 = VLong.of(Long.valueOf(3), alarm_...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVUInt() { final long UINT_MAX = 4294967295L; VUInt goodResult_1 = VUInt.of(UInteger.valueOf(0), alarm_1, time_1, display_1); VUInt goodResult_2 = VUInt.of(UInteger.valueOf(18), alarm_1, time_1, display_1); VUInt number = VUInt.of(UInteger.valueOf(3), alarm_1, time_1, display_1); VUInt mult...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVInt() { VInt goodResult_1 = VInt.of(0, alarm_1, time_1, display_1); VInt goodResult_2 = VInt.of(18, alarm_1, time_1, display_1); VInt goodResult_3 = VInt.of(-18, alarm_1, time_1, display_1); VInt number_1 = VInt.of(3, alarm_1, time_1, display_1); VInt number_2 = VInt.of(-3, alarm_1, time_...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void testDeleteFolder() { services.deleteNode("a"); verify(nodeDAO, atLeast(1)).deleteNode("a"); reset(nodeDAO); }
@Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } }
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snaps...
Services implements IServices { @Override @Transactional public void deleteNode(String nodeId) { logger.info("Deleting node id={}", nodeId); nodeDAO.deleteNode(nodeId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snaps...
@Test public void TestMultiplyVUShort() { final int USHORT_MAX = 65535; VUShort goodResult_1 = VUShort.of(UShort.valueOf(Short.parseShort("0")), alarm_1, time_1, display_1); VUShort goodResult_2 = VUShort.of(UShort.valueOf(Short.parseShort("18")), alarm_1, time_1, display_1); VUShort number = VUShort.of(UShort.valueOf(...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVShort() { VShort goodResult_1 = VShort.of(Short.valueOf("0"), alarm_1, time_1, display_1); VShort goodResult_2 = VShort.of(Short.valueOf("18"), alarm_1, time_1, display_1); VShort goodResult_3 = VShort.of(Short.valueOf("-18"), alarm_1, time_1, display_1); VShort number_1 = VShort.of(Short...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVUByte() { final int UBYTE_MAX = 255; VUByte goodResult_1 = VUByte.of(UByte.valueOf(Byte.parseByte("0")), alarm_1, time_1, display_1); VUByte goodResult_2 = VUByte.of(UByte.valueOf(Byte.parseByte("18")), alarm_1, time_1, display_1); VUByte number = VUByte.of(UByte.valueOf(Byte.parseByte("3...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestMultiplyVByte() { VByte goodResult_1 = VByte.of(Byte.valueOf("0"), alarm_1, time_1, display_1); VByte goodResult_2 = VByte.of(Byte.valueOf("18"), alarm_1, time_1, display_1); VByte goodResult_3 = VByte.of(Byte.valueOf("-18"), alarm_1, time_1, display_1); VByte number_1 = VByte.of(Byte.valueOf("3")...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVDoubleArray() { final double multiplier = 2d; final List<Double> list = Arrays.asList(0.1d, 2.3d, 4.5d, 6.7d); ListDouble listDouble = new ListDouble() { @Override public double getDouble(int i) { return list.get(i); } @Override public int size() { return list.size(); } }; VDoubleArray doubleArra...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVFloatArray() { final double multiplier = 2d; final List<Float> list = Arrays.asList(0.1f, 2.3f, 4.5f, 6.7f); ListFloat listFloat = new ListFloat() { @Override public float getFloat(int i) { return list.get(i); } @Override public int size() { return list.size(); } }; VFloatArray floatArray = VFloa...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVULongArray() { final double multiplier = 2d; final List<ULong> list = Arrays.asList(ULong.valueOf(0L), ULong.valueOf(1L), ULong.valueOf(2L), ULong.valueOf(3L)); ListULong listULong = new ListULong() { @Override public long getLong(int i) { return list.get(i).longValue(); } @Override public int si...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVLongArray() { final double multiplier = 2d; final List<Long> list = Arrays.asList(0L, 1L, 2L, 3L); ListLong listLong = new ListLong() { @Override public long getLong(int i) { return list.get(i); } @Override public int size() { return list.size(); } }; VLongArray longArray = VLongArray.of(listLong...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVUIntegerArray() { final double multiplier = 2d; final List<UInteger> list = Arrays.asList(UInteger.valueOf(0), UInteger.valueOf(1), UInteger.valueOf(2), UInteger.valueOf(3)); ListUInteger listUInteger = new ListUInteger() { @Override public int getInt(int i) { return list.get(i).intValue(); } @Ov...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVIntegerArray() { final double multiplier = 2d; final List<Integer> list = Arrays.asList(0, 1, 2, 3); ListInteger listInteger = new ListInteger() { @Override public int getInt(int i) { return list.get(i); } @Override public int size() { return list.size(); } }; VIntArray intArray = VIntArray.of(li...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void testMoveNode() { services.moveNode("a", "b", "username"); verify(nodeDAO, atLeast(1)).moveNode("a", "b", "username"); reset(nodeDAO); }
@Override @Transactional public Node moveNode(String nodeId, String targetNodeId, String userName) { logger.info("Moving node id {} to raget node id {}", nodeId, targetNodeId); return nodeDAO.moveNode(nodeId, targetNodeId, userName); }
Services implements IServices { @Override @Transactional public Node moveNode(String nodeId, String targetNodeId, String userName) { logger.info("Moving node id {} to raget node id {}", nodeId, targetNodeId); return nodeDAO.moveNode(nodeId, targetNodeId, userName); } }
Services implements IServices { @Override @Transactional public Node moveNode(String nodeId, String targetNodeId, String userName) { logger.info("Moving node id {} to raget node id {}", nodeId, targetNodeId); return nodeDAO.moveNode(nodeId, targetNodeId, userName); } }
Services implements IServices { @Override @Transactional public Node moveNode(String nodeId, String targetNodeId, String userName) { logger.info("Moving node id {} to raget node id {}", nodeId, targetNodeId); return nodeDAO.moveNode(nodeId, targetNodeId, userName); } @Override Node getParentNode(String uniqueNodeId); ...
Services implements IServices { @Override @Transactional public Node moveNode(String nodeId, String targetNodeId, String userName) { logger.info("Moving node id {} to raget node id {}", nodeId, targetNodeId); return nodeDAO.moveNode(nodeId, targetNodeId, userName); } @Override Node getParentNode(String uniqueNodeId); ...
@Test public void TestVUShortArray() { final double multiplier = 2d; final List<UShort> list = Arrays.asList(UShort.valueOf(Short.parseShort("0")), UShort.valueOf(Short.parseShort("1")), UShort.valueOf(Short.parseShort("2")), UShort.valueOf(Short.parseShort("3"))); ListUShort listUShort = new ListUShort() { @Override p...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVShortArray() { final double multiplier = 2d; final List<Short> list = Arrays.asList(Short.parseShort("0"), Short.parseShort("1"), Short.parseShort("2"), Short.parseShort("3")); ListShort listShort = new ListShort() { @Override public short getShort(int i) { return list.get(i); } @Override public ...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVUByteArray() { final double multiplier = 2d; final List<UByte> list = Arrays.asList(UByte.valueOf(Byte.parseByte("0")), UByte.valueOf(Byte.parseByte("1")), UByte.valueOf(Byte.parseByte("2")), UByte.valueOf(Byte.parseByte("3"))); ListUByte listUByte = new ListUByte() { @Override public byte getByt...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void TestVByteArray() { final double multiplier = 2d; final List<Byte> list = Arrays.asList(Byte.parseByte("0"), Byte.parseByte("1"), Byte.parseByte("2"), Byte.parseByte("3")); ListByte listByte = new ListByte() { @Override public byte getByte(int i) { return list.get(i); } @Override public int size() { re...
public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong && b instanceof ...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
SafeMultiply { public static Number multiply(Number a, Number b) throws UnsupportedOperationException { if (a instanceof Double && b instanceof Double) { return multiply((Double) a, (Double) b); } else if (a instanceof Float && b instanceof Float) { return multiply((Float) a, (Float) b); } else if (a instanceof ULong &...
@Test public void testPathWrangler() { final PathWrangler wrangler = new PathWrangler("phoebus\\.app/Content/.*,phoebus\\.app/,phoebus-[^/]+/,product-[^/]+/,jdk/.*"); assertThat(wrangler.wrangle("phoebus-0.0.1/doc/applications.html"), equalTo("doc/applications.html")); assertThat(wrangler.wrangle("product-sns-0.0.1/lib...
public PathWrangler(final String removals) { for (String remove : removals.split(",")) this.removals.add(Pattern.compile(remove)); }
PathWrangler { public PathWrangler(final String removals) { for (String remove : removals.split(",")) this.removals.add(Pattern.compile(remove)); } }
PathWrangler { public PathWrangler(final String removals) { for (String remove : removals.split(",")) this.removals.add(Pattern.compile(remove)); } PathWrangler(final String removals); }
PathWrangler { public PathWrangler(final String removals) { for (String remove : removals.split(",")) this.removals.add(Pattern.compile(remove)); } PathWrangler(final String removals); String wrangle(String path); }
PathWrangler { public PathWrangler(final String removals) { for (String remove : removals.split(",")) this.removals.add(Pattern.compile(remove)); } PathWrangler(final String removals); String wrangle(String path); }
@Test public void listPrefixes() { final Collection<String> prefs = PVPool.getSupportedPrefixes(); System.out.println("Prefixes: " + prefs); assertThat(prefs, hasItem("ca")); assertThat(prefs, hasItem("sim")); }
public static Collection<String> getSupportedPrefixes() { return factories.keySet(); }
PVPool { public static Collection<String> getSupportedPrefixes() { return factories.keySet(); } }
PVPool { public static Collection<String> getSupportedPrefixes() { return factories.keySet(); } private PVPool(); }
PVPool { public static Collection<String> getSupportedPrefixes() { return factories.keySet(); } private PVPool(); static Collection<String> getSupportedPrefixes(); static PV getPV(final String name); static void releasePV(final PV pv); static Collection<ReferencedEntry<PV>> getPVReferences(); }
PVPool { public static Collection<String> getSupportedPrefixes() { return factories.keySet(); } private PVPool(); static Collection<String> getSupportedPrefixes(); static PV getPV(final String name); static void releasePV(final PV pv); static Collection<ReferencedEntry<PV>> getPVReferences(); static final String DEFAU...
@Test public void dateSpanValueZero() throws Exception { IndexNameHelper inh = new IndexNameHelper("test_index", "y", 0); String indexName = inh.getIndexName(Instant.now()); assertEquals("test_index", indexName); }
public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; }
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } }
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
@Test public void dateSpanValueLessThanZero() throws Exception { IndexNameHelper inh = new IndexNameHelper("test_index", "y", -5); String indexName = inh.getIndexName(Instant.now()); assertEquals("test_index", indexName); }
public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; }
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } }
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
IndexNameHelper { public String getIndexName(Instant time) { if (dateSpanValue < 1) return baseIndexName; if (null != time && (null == spanEnd || time.isAfter(spanEnd))) { setDateSpanStartAndEnd(time); currentDateSpan = parseCurrentDateSpan(); } return baseIndexName + "_" + currentDateSpan; } IndexNameHelper(final Stri...
@Test public void testFile() throws Exception { File bob = new File("/some/path/file.bob"); File file = FileExtensionUtil.enforceFileExtension(new File("/some/path/file"), "bob"); assertThat(file, equalTo(bob)); file = FileExtensionUtil.enforceFileExtension(new File("/some/path/file.abc"), "bob"); assertThat(file, equa...
public static File enforceFileExtension(final File file, final String desiredExtension) { final String path = file.getPath(); final int sep = path.lastIndexOf('.'); if (sep < 0){ return new File(path + "." + desiredExtension); } final String ext = path.substring(sep + 1); if (! ext.equals(desiredExtension)){ return new...
FileExtensionUtil { public static File enforceFileExtension(final File file, final String desiredExtension) { final String path = file.getPath(); final int sep = path.lastIndexOf('.'); if (sep < 0){ return new File(path + "." + desiredExtension); } final String ext = path.substring(sep + 1); if (! ext.equals(desiredExt...
FileExtensionUtil { public static File enforceFileExtension(final File file, final String desiredExtension) { final String path = file.getPath(); final int sep = path.lastIndexOf('.'); if (sep < 0){ return new File(path + "." + desiredExtension); } final String ext = path.substring(sep + 1); if (! ext.equals(desiredExt...
FileExtensionUtil { public static File enforceFileExtension(final File file, final String desiredExtension) { final String path = file.getPath(); final int sep = path.lastIndexOf('.'); if (sep < 0){ return new File(path + "." + desiredExtension); } final String ext = path.substring(sep + 1); if (! ext.equals(desiredExt...
FileExtensionUtil { public static File enforceFileExtension(final File file, final String desiredExtension) { final String path = file.getPath(); final int sep = path.lastIndexOf('.'); if (sep < 0){ return new File(path + "." + desiredExtension); } final String ext = path.substring(sep + 1); if (! ext.equals(desiredExt...
@Test public void sec1() { Duration duration = TimeDuration.ofSeconds(1.0); assertThat(duration.getNano(), equalTo(0)); assertThat(duration.getSeconds(), equalTo(1L)); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void testUpdateNode() { Node node = Node.builder().build(); services.updateNode(node); verify(nodeDAO, atLeast(1)).updateNode(node, false); reset(nodeDAO); }
@Override public Node updateNode(Node nodeToUpdate) { return updateNode(nodeToUpdate, false); }
Services implements IServices { @Override public Node updateNode(Node nodeToUpdate) { return updateNode(nodeToUpdate, false); } }
Services implements IServices { @Override public Node updateNode(Node nodeToUpdate) { return updateNode(nodeToUpdate, false); } }
Services implements IServices { @Override public Node updateNode(Node nodeToUpdate) { return updateNode(nodeToUpdate, false); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snapshotUniqueId); @Override Node createNode(Str...
Services implements IServices { @Override public Node updateNode(Node nodeToUpdate) { return updateNode(nodeToUpdate, false); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSnapshots(String configUniqueId); @Override Node getSnapshot(String snapshotUniqueId); @Override Node createNode(Str...
@Test public void sec2() { Duration duration = TimeDuration.ofSeconds(0.123456789); assertThat(duration.getNano(), equalTo(123456789)); assertThat(duration.getSeconds(), equalTo(0L)); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void sec3() { Duration duration = TimeDuration.ofSeconds(-1.23456789); assertThat(duration.getNano(), equalTo(765432110)); assertThat(duration.getSeconds(), equalTo(-2L)); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void min1() { Duration duration = TimeDuration.ofMinutes(1.0); assertThat(duration.getNano(), equalTo(0)); assertThat(duration.getSeconds(), equalTo(60L)); }
public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
@Test public void min2() { Duration duration = TimeDuration.ofMinutes(0.123456789); assertThat(duration.getNano(), equalTo(407407340)); assertThat(duration.getSeconds(), equalTo(7L)); }
public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
@Test public void min3() { Duration duration = TimeDuration.ofMinutes(-1.23456789); assertThat(duration.getNano(), equalTo(925926601)); assertThat(duration.getSeconds(), equalTo(-75L)); }
public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
TimeDuration { public static Duration ofMinutes(double min) { return Duration.ofNanos((long) (min * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); st...
@Test public void hour1() { Duration duration = TimeDuration.ofHours(1.0); assertThat(duration.getNano(), equalTo(0)); assertThat(duration.getSeconds(), equalTo(3600L)); }
public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
@Test public void hour2() { Duration duration = TimeDuration.ofHours(0.123456789); assertThat(duration.getNano(), equalTo(444440399)); assertThat(duration.getSeconds(), equalTo(444L)); }
public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
@Test public void hour3() { Duration duration = TimeDuration.ofHours(-1.23456789); assertThat(duration.getNano(), equalTo(555596001)); assertThat(duration.getSeconds(), equalTo(-4445L)); }
public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
TimeDuration { public static Duration ofHours(double hour) { return Duration.ofNanos((long) (hour * 60 * 60 * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min...
@Test public void hz1() { Duration duration = TimeDuration.ofHertz(1.0); assertThat(duration.getNano(), equalTo(0)); assertThat(duration.getSeconds(), equalTo(1L)); }
public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
@Test public void hz2() { Duration duration = TimeDuration.ofHertz(100.0); assertThat(duration.getNano(), equalTo(10000000)); assertThat(duration.getSeconds(), equalTo(0L)); }
public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
@Test public void testUpdateConfiguration() { when(nodeDAO.updateConfiguration(config1, configPvList)).thenReturn(config1); assertNotNull(services.updateConfiguration(config1, configPvList)); }
@Override @Transactional public Node updateConfiguration(Node configToUpdate, List<ConfigPv> configPvs) { logger.info("Updating configuration unique id: {}", configToUpdate.getUniqueId()); return nodeDAO.updateConfiguration(configToUpdate, configPvs); }
Services implements IServices { @Override @Transactional public Node updateConfiguration(Node configToUpdate, List<ConfigPv> configPvs) { logger.info("Updating configuration unique id: {}", configToUpdate.getUniqueId()); return nodeDAO.updateConfiguration(configToUpdate, configPvs); } }
Services implements IServices { @Override @Transactional public Node updateConfiguration(Node configToUpdate, List<ConfigPv> configPvs) { logger.info("Updating configuration unique id: {}", configToUpdate.getUniqueId()); return nodeDAO.updateConfiguration(configToUpdate, configPvs); } }
Services implements IServices { @Override @Transactional public Node updateConfiguration(Node configToUpdate, List<ConfigPv> configPvs) { logger.info("Updating configuration unique id: {}", configToUpdate.getUniqueId()); return nodeDAO.updateConfiguration(configToUpdate, configPvs); } @Override Node getParentNode(Stri...
Services implements IServices { @Override @Transactional public Node updateConfiguration(Node configToUpdate, List<ConfigPv> configPvs) { logger.info("Updating configuration unique id: {}", configToUpdate.getUniqueId()); return nodeDAO.updateConfiguration(configToUpdate, configPvs); } @Override Node getParentNode(Stri...
@Test public void hz3() { Duration duration = TimeDuration.ofHertz(0.123456789); assertThat(duration.getNano(), equalTo(100000073)); assertThat(duration.getSeconds(), equalTo(8L)); }
public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); }
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
TimeDuration { public static Duration ofHertz(double hz) { if (hz <= 0.0) { throw new IllegalArgumentException("Frequency has to be greater than 0.0"); } return Duration.ofNanos((long) (1000000000.0 / hz)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double d...
@Test public void plus1() { Duration duration = Duration.ofMillis(800); assertThat(duration.plus(Duration.ofMillis(300)), equalTo(TimeDuration.ofSeconds(1.1))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void plus2() { Duration duration = Duration.ofMillis(-100); assertThat(duration.plus(Duration.ofMillis(300)), equalTo(TimeDuration.ofSeconds(0.2))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void plus3() { Duration duration = Duration.ofMillis(100); assertThat(duration.plus(Duration.ofMillis(-200)), equalTo(TimeDuration.ofSeconds(-0.1))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void plus4() { Duration duration = TimeDuration.ofSeconds(1.250); assertThat(duration.plus(TimeDuration.ofSeconds(1.250)), equalTo(TimeDuration.ofSeconds(2.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void plus5() { Duration duration = TimeDuration.ofSeconds(10.250); assertThat(duration.plus(TimeDuration.ofSeconds(-1.750)), equalTo(TimeDuration.ofSeconds(8.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void minus1() { Duration duration = Duration.ofMillis(800); assertThat(duration.minus(Duration.ofMillis(300)), equalTo(TimeDuration.ofSeconds(0.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void minus2() { Duration duration = Duration.ofMillis(800); assertThat(duration.minus(Duration.ofMillis(-300)), equalTo(TimeDuration.ofSeconds(1.1))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void minus3() { Duration duration = Duration.ofMillis(1300); assertThat(duration.minus(Duration.ofMillis(800)), equalTo(TimeDuration.ofSeconds(0.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void minus4() { Duration duration = Duration.ofMillis(800); assertThat(duration.minus(Duration.ofMillis(1300)), equalTo(TimeDuration.ofSeconds(-0.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void testGetSnapshotItems() { when(nodeDAO.getSnapshotItems("a")).thenReturn(Collections.emptyList()); assertNotNull(services.getSnapshotItems("a")); }
@Override public List<SnapshotItem> getSnapshotItems(String snapshotUniqueId) { logger.info("Getting snapshot items for snapshot id {}", snapshotUniqueId); return nodeDAO.getSnapshotItems(snapshotUniqueId); }
Services implements IServices { @Override public List<SnapshotItem> getSnapshotItems(String snapshotUniqueId) { logger.info("Getting snapshot items for snapshot id {}", snapshotUniqueId); return nodeDAO.getSnapshotItems(snapshotUniqueId); } }
Services implements IServices { @Override public List<SnapshotItem> getSnapshotItems(String snapshotUniqueId) { logger.info("Getting snapshot items for snapshot id {}", snapshotUniqueId); return nodeDAO.getSnapshotItems(snapshotUniqueId); } }
Services implements IServices { @Override public List<SnapshotItem> getSnapshotItems(String snapshotUniqueId) { logger.info("Getting snapshot items for snapshot id {}", snapshotUniqueId); return nodeDAO.getSnapshotItems(snapshotUniqueId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSna...
Services implements IServices { @Override public List<SnapshotItem> getSnapshotItems(String snapshotUniqueId) { logger.info("Getting snapshot items for snapshot id {}", snapshotUniqueId); return nodeDAO.getSnapshotItems(snapshotUniqueId); } @Override Node getParentNode(String uniqueNodeId); @Override List<Node> getSna...
@Test public void minus5() { Duration duration = TimeDuration.ofSeconds(10.250); assertThat(duration.minus(Duration.ofMillis(1750)), equalTo(TimeDuration.ofSeconds(8.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void multipliedBy1() { Duration duration = Duration.ofMillis(300); assertThat(duration.multipliedBy(5), equalTo(TimeDuration.ofSeconds(1.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void multipliedBy2() { Duration duration = TimeDuration.ofSeconds(10.500); assertThat(duration.multipliedBy(5), equalTo(TimeDuration.ofSeconds(52.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void multipliedBy3() { Duration duration = TimeDuration.ofSeconds(10.500); assertThat(duration.multipliedBy(-5), equalTo(TimeDuration.ofSeconds(-52.5))); }
public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); }
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
TimeDuration { public static Duration ofSeconds(double sec) { return Duration.ofNanos((long) (sec * NANOSEC_IN_SEC)); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMinutes(double min); static ...
@Test public void toString1() { Duration duration = Duration.ofMillis(10); assertThat(TimeDuration.toSecondString(duration), equalTo("0.010000000")); }
public static String toSecondString(Duration duration){ return duration.getSeconds() + "." + format.format(duration.getNano()); }
TimeDuration { public static String toSecondString(Duration duration){ return duration.getSeconds() + "." + format.format(duration.getNano()); } }
TimeDuration { public static String toSecondString(Duration duration){ return duration.getSeconds() + "." + format.format(duration.getNano()); } private TimeDuration(); }
TimeDuration { public static String toSecondString(Duration duration){ return duration.getSeconds() + "." + format.format(duration.getNano()); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMin...
TimeDuration { public static String toSecondString(Duration duration){ return duration.getSeconds() + "." + format.format(duration.getNano()); } private TimeDuration(); static Duration createDuration(long sec, int nanoSec); static Duration ofDays(double day); static Duration ofHours(double hour); static Duration ofMin...