mdb
d58a485c03
Get yer integer to object mappings, cheap!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1051 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-02-06 19:57:29 +00:00
mdb
1e6d49414b
Added ability for LRU hash map to support computed "sizes" for items which
...
will be accounted for when keeping the map under its target "size". Had to
rearchitect it to delegate to the LinkedHashMap because HashMap doesn't
expose the necessary helper methods to allow us to accomplish what we need
as a derived class. Additionally, the keySet(), values() and entrySet()
methods return read-only collections because supporting modification
through those interfaces would dramatically increase complexity.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1026 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-01-17 00:40:45 +00:00
mdb
d63a1d9022
Use a tabbed pane.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1022 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-01-15 03:24:53 +00:00
mdb
5109821d5c
A test app for the runtime adjustment stuff.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1016 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-01-15 00:47:06 +00:00
shaper
c4fc394c3d
Added SystemInfo record that gathers a variety of interesting system
...
statistics and provides a facility for updating the statistics and
obtaining a concise human-readable string presentation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1010 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-01-14 22:07:06 +00:00
mdb
c9ee4f3b3c
Label demo updates to support further testing and bug fixes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@966 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-12-06 22:18:07 +00:00
mdb
06fa138f66
Le twisted test case.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@947 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-25 22:23:36 +00:00
mdb
372b031e7b
Much more substantial testing for the fancy new inheritable properties.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@946 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-25 22:23:21 +00:00
mdb
241f228a3b
Yet another increase in the sophistication of the label test program
...
because it seems I'm going to spend half of the rest of my life debugging
the fucking label code.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@937 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-13 23:17:26 +00:00
mdb
5b46e83f76
Cleaned up label demo; added test for golden ratio business.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@920 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-12 00:37:41 +00:00
mdb
9ab80613b4
More testing.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@891 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-06 04:29:17 +00:00
mdb
9b92d44e5b
Label.setOutlineColor() is now Label.setAlternateColor().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@889 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-11-05 03:01:08 +00:00
mdb
fdd6400033
Test SortableArrayList.insertSorted().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@839 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-23 01:45:47 +00:00
shaper
66be01eb29
Added various variants of splice() to facilitate array manipulations by
...
those who are accustomed to slinging backticks and slurping files with
Perl. Someday perhaps we'll go whole-hog and implement more of the
Perl-style splicing antics (allowing negative offset and/or length, and
optionally passing a list of items to splice into the array.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@827 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 02:12:26 +00:00
mdb
8ce40edfe3
Moved SortableArrayList.binarySearch functionality into ArrayUtil to make
...
it generally accessible. Moved test code from ArrayUtil into separate
JUnit test class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@809 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-12 01:10:32 +00:00
mdb
49e225ca47
Test outlined rendering as well.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@783 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-20 23:45:15 +00:00
ray
fd6775b3d9
Added tests to test the growing and shrinking the hashtable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@756 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-23 23:29:38 +00:00
mdb
d88837ba3e
Beefed up unit test.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:15:19 +00:00
mdb
92abb3dbc6
We love the unit tests bay-bee!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@745 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:00:07 +00:00
mdb
a9cca659a4
Implemented retainAll().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@742 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 20:50:31 +00:00
samskivert@gmail.com
6caf731ff9
Added selectRandomSubset() which selects a random subset of elements (with
...
equal probability) from a collection.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@701 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-04-11 04:11:23 +00:00
mdb
8daf88066b
assert -> assertTrue to avoid collision with new Java assert keyword.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@700 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-04-11 04:07:42 +00:00
mdb
071ccbb806
StreamUtils moved from util to io.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@690 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-04-01 01:56:34 +00:00
mdb
ebcdf0fff6
Updated to reflect changed test properties file.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@689 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-04-01 01:56:21 +00:00
mdb
9e29383ada
Added a mechanism for retrieving a set of sub-properties (whose keys all
...
start with a particular prefix) from a configuration object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@688 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-28 22:21:06 +00:00
mdb
752a14a5e3
Revamped the way configuration and preferences work. Now there is a config
...
object associated with each different package's preferences (rather than
everything being bound into one object and differentiated by passing a
prefix) and the base config system supports user overrides of
configuration information (preferences) using the Java preferences
services.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@685 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-28 21:50:27 +00:00
mdb
2c659068f7
Expanded imports; moved test code into unit test class.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@684 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-28 18:57:34 +00:00
mdb
98513e3bc7
Use JAVA_LIBS to locate our jar files.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@683 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-28 18:56:13 +00:00
mdb
da6439a7bb
Implemented a class for selecting among a mutually exclusive set of
...
buttons.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@644 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-10 05:10:37 +00:00
mdb
3900a7da7f
A class for doing quick sorts.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@580 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:37:32 +00:00
mdb
3af18399cd
Implemented an efficient integer set class that uses a sorted array of
...
integers to maintain its contents.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@559 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:10:16 +00:00
mdb
1b26bab85b
Use Arrays.equals() instead of rolling our own.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@558 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:09:50 +00:00
mdb
2fb0906dda
Made joinEscaped() handle null array elements by converting them to the
...
empty string.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:21:15 +00:00
mdb
a7eef89a75
Added StringUtil.joinEscaped() and a unit test for said.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:11:27 +00:00
mdb
b72c8e0bd5
Added simple test driver for ConfigUtil.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:19:13 +00:00
mdb
6d7308fb2b
Copy the contents of the rsrc directory into the classpath.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@542 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:18:53 +00:00
mdb
9fd65f6091
git-svn-id: https://samskivert.googlecode.com/svn/trunk@530 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-20 02:00:12 +00:00
mdb
d6dc2e1822
Created a lightweight class for managing text formatted to fit in a
...
particular dimension (either horizontal or vertical).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@525 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-19 07:02:50 +00:00
mdb
2b69011649
Implemented a class (and a unit test) that can quickly locate the nearest
...
coordinate-having object to a specified coordinate from a set of such
objects. It does so using an efficient algorithm so that we can do things
like highlight the object nearest the mouse cursor.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@516 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-15 03:19:03 +00:00
mdb
ae224c6252
Modified TestUtil not to prepend 'rsrc' to test resource file paths
...
because it's silly. Prepend your own damned 'rsrc' if you want to look in
that directory.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-13 01:31:23 +00:00
mdb
14fea2a593
Created unit test for HashIntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@472 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:34:31 +00:00
mdb
b52216a91d
Created SetFieldRule which allows the XML Digester to set public fields on
...
objects with automatic conversion from a string to the appropriate field
type (currently supports int, Integer, String, int[] and String[]).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@454 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:52 +00:00
mdb
f6a1538b4f
Require that JUnit forks so that we don't end up with wacky conflicts
...
between xerces.jar loaded by ant and our own copies of an XML parser
implementation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@452 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:44:24 +00:00
mdb
c69f170765
SiteResourceLoader no longer automatically falls back to the servlet
...
context, so we have to simulate that ourselves.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@441 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:57:18 +00:00
mdb
95a4918665
Don't find anything with Test in it, just anything that ends with Test.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@440 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:56:59 +00:00
mdb
5f85b12298
Created a version of ListUtil that works with arrays of ints.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@424 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:29 +00:00
mdb
3148bf5c76
Added a version of getResourceAsStream() that takes the site identifier
...
for when the site has already been identified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@422 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 18:08:01 +00:00
mdb
c5fdf91de8
Created a testing framework for the samskivert library based on JUnit and
...
ant. The test drivers are located in a separate hierarchy and are built
and invoked as a single ant target.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@419 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:13:25 +00:00
mdb
820c633b73
Created site resource loader which loads resources based on the site
...
identified from an http request. Also created a unit test driver for the
loader.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@418 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:12:31 +00:00
mdb
804f98de22
Created a configuration management object that provides access to typed
...
config values retrieved from properties files that live in the classpath.
Also modified build system to copy properties files from the classpath
into the target directory so that they are properly available.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@165 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 02:44:34 +00:00