Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
8c648bae
Commit
8c648bae
authored
17 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
add:
- dummy strings added and methods to access them SVN: 1621
parent
43229e2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/utilities/StringUtilities.java
+47
-0
47 additions, 0 deletions
...va/ch/systemsx/cisd/common/utilities/StringUtilities.java
with
47 additions
and
0 deletions
common/source/java/ch/systemsx/cisd/common/utilities/StringUtilities.java
+
47
−
0
View file @
8c648bae
...
@@ -32,6 +32,34 @@ import org.apache.commons.lang.StringUtils;
...
@@ -32,6 +32,34 @@ import org.apache.commons.lang.StringUtils;
public
final
class
StringUtilities
public
final
class
StringUtilities
{
{
private
static
final
String
[]
STRINGS
=
new
String
[]
{
"phalanx"
,
"nightmare"
,
"concierge"
,
"asbestos"
,
"cody"
,
"hermit"
,
"nbc"
,
"couplet"
,
"dice"
,
"thumbnail"
,
"finley"
,
"figure"
,
"exclamation"
,
"whoosh"
,
"punish"
,
"servitor"
,
"portend"
,
"boulevard"
,
"bacterial"
,
"dilate"
,
"emboss"
,
"birmingham"
,
"illustrate"
,
"pomona"
,
"truk"
,
"bursitis"
,
"trustworthy"
,
"harriman"
,
"schenectady"
,
"obligate"
,
"oceania"
,
"knew"
,
"quickstep"
,
"woo"
,
"strickland"
,
"sadie"
,
"malabar"
,
"posit"
,
"breadfruit"
,
"grandfather"
,
"vishnu"
,
"vacuous"
,
"melpomene"
,
"assam"
,
"blaine"
,
"taskmaster"
,
"polymeric"
,
"hector"
,
"counterrevolution"
,
"compassionate"
,
"linkage"
,
"distant"
,
"vet"
,
"shako"
,
"eagan"
,
"neutronium"
,
"stony"
,
"lie"
,
"hoydenish"
,
"dial"
,
"hecate"
,
"pinch"
,
"olin"
,
"piglet"
,
"basswood"
,
"yawn"
,
"ouzo"
,
"scrupulosity"
,
"bestiary"
,
"subpoena"
,
"nudge"
,
"baton"
,
"thing"
,
"hallmark"
,
"bossy"
,
"preferential"
,
"bambi"
,
"narwhal"
,
"brighten"
,
"omnipotent"
,
"forsake"
,
"flapping"
,
"orthodoxy"
,
"upcome"
,
"teaspoonful"
,
"wabash"
,
"lipid"
,
"enjoin"
,
"shoshone"
,
"wartime"
,
"gatekeeper"
,
"litigate"
,
"siderite"
,
"sadden"
,
"visage"
,
"boogie"
,
"scald"
,
"equate"
,
"tragic"
,
"ordinary"
,
"wick"
,
"gigawatt"
,
"desultory"
,
"bambi"
,
"aureomycin"
,
"car"
,
"especial"
,
"rescue"
,
"protector"
,
"burnett"
,
"constant"
,
"heroes"
,
"filmstrip"
,
"homeown"
,
"verdant"
,
"governor"
,
"cornwall"
,
"predisposition"
,
"sedan"
,
"resemblant"
,
"satellite"
,
"committeemen"
,
"given"
,
"narragansett"
,
"switzer"
,
"clockwatcher"
,
"sweeten"
,
"monologist"
,
"execrate"
,
"gila"
,
"lad"
,
"mahayanist"
,
"solicitation"
,
"linemen"
,
"reading"
,
"hoard"
,
"phyla"
,
"carcinoma"
,
"glycol"
,
"polymer"
,
"hangmen"
,
"dualism"
,
"betrayal"
,
"corpsman"
,
"stint"
,
"hannah"
,
"balsam"
,
"granola"
,
"charitable"
,
"osborn"
,
"party"
,
"laboratory"
,
"norwich"
,
"laxative"
,
"collude"
,
"rockefeller"
,
"crack"
,
"lamarck"
,
"purposeful"
,
"neuroanotomy"
,
"araby"
,
"crucible"
,
"oratorical"
,
"dramaturgy"
,
"kitty"
,
"pit"
,
"ephesus"
,
"bum"
,
"amuse"
,
"clogging"
,
"joker"
,
"fobbing"
,
"extent"
,
"colossal"
,
"macromolecule"
,
"choppy"
,
"tennessee"
,
"primrose"
,
"glassine"
,
"vampire"
,
"chap"
,
"precursor"
,
"incorrigible"
,
"slither"
,
"interrogate"
,
"spectral"
,
"debut"
,
"creche"
,
"pyrolysis"
,
"homicidal"
,
"sonnet"
,
"gin"
,
"science"
,
"magma"
,
"metaphor"
,
"cobble"
,
"dyer"
,
"narrate"
,
"goody"
,
"optometric"
};
private
StringUtilities
()
private
StringUtilities
()
{
{
// This class can not be instantiated.
// This class can not be instantiated.
...
@@ -70,4 +98,23 @@ public final class StringUtilities
...
@@ -70,4 +98,23 @@ public final class StringUtilities
return
StringUtils
.
join
(
list
,
OSUtilities
.
LINE_SEPARATOR
);
return
StringUtils
.
join
(
list
,
OSUtilities
.
LINE_SEPARATOR
);
}
}
/**
* Returns an array of as many strings as you request.
*/
public
static
final
String
[]
getStrings
(
int
numberOfStrings
)
{
String
[]
result
=
new
String
[
numberOfStrings
];
for
(
int
i
=
0
;
i
<
numberOfStrings
;
i
++)
{
result
[
i
]
=
getString
();
}
return
result
;
}
/** Returns a random string. */
public
static
final
String
getString
()
{
return
STRINGS
[(
int
)
(
Math
.
random
()
*
STRINGS
.
length
-
1
)];
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment