List of usage examples for java.util Arrays deepToString
public static String deepToString(Object[] a)
From source file:io.fouad.jtb.core.beans.UserProfilePhotos.java
@Override public String toString() { return "UserProfilePhotos{" + "totalCount=" + totalCount + ", photos=" + Arrays.deepToString(photos) + '}'; }
From source file:net.flutterflies.fwapaderp.game.TeamManager.java
public void assignPlayer(Player player, Team team) { // Try to add a player; if the player doesn't exist, skip try {//ww w . jav a 2s . c o m team.addEntry(player.getName()); } catch (NullPointerException ignored) { plugin.getLogger().severe(Arrays.deepToString(player.getScoreboard().getTeams().toArray(new Team[1]))); } }
From source file:com.moilioncircle.redis.replicator.RedisAofReplicator.java
private void doOpen() { worker.start();// w w w. ja va 2s .c o m while (true) { try { Object obj = replyParser.parse(); if (obj instanceof Object[]) { if (configuration.isVerbose() && logger.isDebugEnabled()) logger.debug(Arrays.deepToString((Object[]) obj)); Object[] command = (Object[]) obj; CommandName cmdName = CommandName.name((String) command[0]); Object[] params = new Object[command.length - 1]; System.arraycopy(command, 1, params, 0, params.length); final CommandParser<? extends Command> operations; //if command do not register. ignore if ((operations = commands.get(cmdName)) == null) continue; //do command replyParser Command parsedCommand = operations.parse(cmdName, params); //submit event this.submitEvent(parsedCommand); } else { logger.info("Redis reply:" + obj); } } catch (IOException | InterruptedException e) { break; } } }
From source file:org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter.java
@Override public void publish(Object message, Map<String, String> dynamicProperties) { String uniqueIdentification = dynamicProperties.get(LoggerEventAdapterConstants.ADAPTER_MESSAGE_UNIQUE_ID); if (uniqueIdentification == null || uniqueIdentification.trim().isEmpty()) { uniqueIdentification = eventAdapterConfiguration.getName(); }//from w ww.j a v a 2s .c om if (message instanceof Object[]) { log.info( "Unique ID: " + uniqueIdentification + ",\n Event: " + Arrays.deepToString((Object[]) message)); } else { log.info("Unique ID: " + uniqueIdentification + ",\n Event: " + message); } }
From source file:com.github.tell.mathematics.combinatorics.CombinationTest.java
@Test public void toyIteratorExample() throws Exception { final Integer[] a = new Integer[] { 0, 1, 2, 3, 4 }; final Integer[] b = ArrayUtils.subarray(a, 2, 4); System.out.printf("b = %s%n", Arrays.deepToString(b)); final Integer[] c = ArrayUtils.add(b, 5); System.out.printf("c = %s%n", Arrays.deepToString(c)); final Integer[] d = ArrayUtils.addAll(c, new Integer[] { 6, 7 }); System.out.printf("d = %s%n", Arrays.deepToString(d)); for (int i = 0; i <= d.length; i++) { final Combination<Integer> comb = new Combination<Integer>(d, i); for (final Integer[] e : comb) { System.out.printf("e = %s%n", Arrays.deepToString(e)); }/*w w w . ja v a 2 s. c o m*/ } }
From source file:de.kopis.glacier.parsers.GlacierUploaderOptionParserTest.java
@Test public void hasRequiredEndpointOptionWithUrl() throws MalformedURLException { final OptionSet optionSet = optionsParser.parse(args); assertTrue("Option 'endpoint' not found in " + Arrays.deepToString(optionSet.specs().toArray()), optionSet.has("endpoint")); assertEquals("Value of option 'endpoint' not found in " + Arrays.deepToString(optionSet.specs().toArray()), "file:///endpointurl", optionSet.valueOf("endpoint")); }
From source file:org.opendds.jms.common.util.Logger.java
public void warn(String message, String[] args) { if (isWarnEnabled()) { warn(message, Arrays.deepToString(args)); } }
From source file:com.celements.menu.MenuService.java
public List<BaseObject> getMenuHeaders() { LOGGER.trace("getMenuHeaders_internal start"); TreeMap<Integer, BaseObject> menuHeadersMap = new TreeMap<Integer, BaseObject>(); addMenuHeaders(menuHeadersMap);/*from ww w . ja v a 2 s .c o m*/ getContext().setDatabase("celements2web"); addMenuHeaders(menuHeadersMap); getContext().setDatabase(getContext().getOriginalDatabase()); ArrayList<BaseObject> resultList = new ArrayList<BaseObject>(); resultList.addAll(menuHeadersMap.values()); if (LOGGER.isTraceEnabled()) { LOGGER.trace("getMenuHeaders_internal returning: " + Arrays.deepToString(resultList.toArray())); } LOGGER.debug("getMenuHeaders_internal end"); return resultList; }
From source file:org.dspace.content.authority.DSpaceControlledVocabulary.java
private static synchronized void initPluginNames() { if (pluginNames == null) { class xmlFilter implements java.io.FilenameFilter { @Override//from w w w . jav a 2 s . c o m public boolean accept(File dir, String name) { return name.endsWith(".xml"); } } String vocabulariesPath = ConfigurationManager.getProperty("dspace.dir") + "/config/controlled-vocabularies/"; String[] xmlFiles = (new File(vocabulariesPath)).list(new xmlFilter()); List<String> names = new ArrayList<String>(); for (String filename : xmlFiles) { names.add((new File(filename)).getName().replace(".xml", "")); } pluginNames = names.toArray(new String[names.size()]); log.info("Got plugin names = " + Arrays.deepToString(pluginNames)); } }
From source file:bi.meteorite.pages.SaikuTable.java
public void shouldHaveRowElementsWhere(BeanMatcher... matchers) { List<WebElement> rows = getRowElementsWhere(matchers); if (rows.isEmpty()) { throw new AssertionError( "Expecting a table with at least one row where: " + Arrays.deepToString(matchers)); }/*from w ww.j a va 2 s. c o m*/ }