Mercurial > dive4elements > river
view gwt-client/src/main/java/org/dive4elements/river/client/client/ui/StringArrayParseHelper.java @ 9493:7c3d689294e8
collisions multiple epochs ui input
author | gernotbelger |
---|---|
date | Fri, 21 Sep 2018 18:19:41 +0200 |
parents | 7337034eb5d5 |
children |
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde * Software engineering by * Björnsen Beratende Ingenieure GmbH * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.client.client.ui; /** * @author Domenico Nardi Tironi * */ public class StringArrayParseHelper { public static final String[] getArrayFromRawString(final String raw) { if (raw != null) { return raw.trim().replaceAll("\\s+", " ").split(" "); } return new String[] {}; } public static final String trimRawString(final String raw) { if (raw != null) { return raw.trim().replaceAll("\\s+", " "); } return ""; } }