mdb
f26d3214e2
Avoid creating a new array when we notify our observers in SAFE_IN_ORDER
...
mode unless our list has grown since we last issued a notification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1707 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 22:10:18 +00:00
samskivert@gmail.com
a0f67d5721
Made remove() work in our Interator.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1706 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:35:41 +00:00
mdb
abe8dcef25
Synced up the spelling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1705 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:23:21 +00:00
ray
9af57bbc1a
Added synchronizedIntSet().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1704 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:20:44 +00:00
ray
3283e99310
Oh, IntIntMap, you are the retarded stepchild of the samskivert.util package.
...
You don't implement Map, you don't grow or shrink...
but at least now you return Interators and have a proper entrySet() method.
(Added a note that maybe someday we should fix it up more.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1703 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:04:13 +00:00
ray
6bdd153cba
Added a SynchronizedIntSet which must back the intKeySet() method of
...
a SynchronizedHashIntMap.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1702 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 19:55:10 +00:00
ray
51429770cb
- Added a method to IntMap: intKeySet(), which returns an IntSet of
...
the keys in the map, which may be Interated over, etc.
- Moved the Entry definition into IntMap where it always should have been,
I think originally I had it in HashIntMap so that the extra annoying import
wasn't necessary. Added an empty subinterface to HashIntMap for backwards
compatability.
- Implemented an optimized putAll() in HashIntMap when adding other IntMaps.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1701 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 18:29:53 +00:00
ray
8e050fa4bb
Added "Interator" and plugged in some quick usage. I'll add more soon.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1700 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 17:49:32 +00:00
mdb
16c5b7e727
We call MessageUtil.escape in the Narya i18n code but not here where it is
...
also needed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1699 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 01:48:37 +00:00
ray
0d73e38193
It's surely faster to add all the elements and then sort, which is why
...
the class is SortableArrayList rather than SortedArrayList (which would
just always insert sorted in add()).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1698 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-16 17:39:49 +00:00
ray
9f00804edf
Spelling consistency.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1697 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 23:00:57 +00:00
ray
62133d2232
- Nixed CompoundIterator, made Collections.getMetaIterator() handle
...
elements in the passed in collection that are Iterators or Collections.
- Nixed SortedIterator, added variants of getSortedIterator() to
Collections.
- Also added getUnmodifiableIterator() and getRandomIterator() to
Collections.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1696 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 22:53:00 +00:00
andrzej
7cc4a56638
Allow null values in HashIntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1695 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 20:51:13 +00:00
mdb
4ecc51e922
Added simpleFormat().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1694 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 07:30:18 +00:00
ray
ae1df7e879
Implemented clear() rather than inheriting the *extremely* inefficient
...
clear() from AbstractList.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1693 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 01:54:16 +00:00
mdb
8fd757c1e4
Add a version of shortClassName that takes the class name directly.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1692 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:55:00 +00:00
elizabeth
f19198cbce
Tightened up restrictHTML regexes to prevent <\!-- or unclosed " html defacement
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1691 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:12:59 +00:00
mdb
f359b77ff5
Don't try to rollback if the failure resulted in the connection being
...
closed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1690 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 17:14:56 +00:00
elizabeth
b81f4113fc
fixed missing call to JDBCUtil.escape
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1689 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:54:57 +00:00
mdb
223cdd8274
We need to escape \ as well as '.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1688 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:51:30 +00:00
mdb
aa74625b0a
Switched to different structure for reporting item removal per Ray's
...
suggestion. This allows proper handling of value classes that cannot be
made to implement an interface or extended or otherwise fiddled with.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1687 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 20:23:37 +00:00
mdb
809df481c1
We need to notify all values about removal when we clear the table.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1686 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 02:45:45 +00:00
samskivert@gmail.com
5f02c3fe6e
Allow a value in an LRU hash map to be notified when it gets the boot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1685 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 02:41:24 +00:00
ray
489e3a72c7
- synchronized the reset() method
...
- avoid synchronization in waitForResponse() if possible.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1684 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-03 20:43:46 +00:00
mdb
e02258a053
Fixed typo.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1683 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-03 18:15:56 +00:00
mdb
39936ac7d4
Added a loadByExample() variant that takes a field mask.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1682 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-01 21:18:27 +00:00
mdb
c099fb97bb
Return the last inserted id when inserting records.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1681 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-24 07:06:58 +00:00
mdb
aeef770bec
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1680 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-24 06:49:37 +00:00
mdb
3ba4a640e5
Let the caller log a stack trace if such a thing is appropriate.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1679 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-21 21:32:16 +00:00
elizabeth
e64063e02f
Unbooched the build
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1678 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-17 18:51:30 +00:00
ray
1275a870bf
Don't allow > 1f scaling if constructed with maxWidth/maxHeight.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1677 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-17 10:06:32 +00:00
ray
abc8eaa5f0
ScaledIcon.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1676 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-17 09:58:59 +00:00
ray
b3ddec4a19
When time goes backwards, cope as best we can by simply not throttling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1675 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-08 01:08:05 +00:00
mdb
fa150109b7
Added straightJoin() for those times when you know you gotta be a straight
...
shooter.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1674 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-07 23:17:30 +00:00
mdb
0525ca17e9
In the interest of no needless log messages; suppress the standard "(I
...
analyzed the table and it was) OK" message.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1673 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-07 06:44:26 +00:00
mdb
7afde07fb6
Allow a default locale to be specified for a message manager.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1672 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-06 22:52:36 +00:00
mdb
c0a0a5de9e
Added maintenance() method for performing periodic table maintenance.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1671 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-06 20:20:35 +00:00
andrzej
4f2ef4b4a1
Use screen coordinates since we can have lots of components for the same target.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1670 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-06 02:46:03 +00:00
ray
35a851ef9a
Only calculate the point's location if we're going to use it...
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1669 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-06 02:29:03 +00:00
andrzej
10e144a723
Added drop location to dropCompleted method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1668 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-06 01:13:46 +00:00
ray
0096afde22
Normalize to 1 if all elements are the same.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1667 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-02 10:01:25 +00:00
mdb
abf28b3592
Report the request URL when reporting a missing translation message.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1666 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-30 19:25:15 +00:00
ray
cf3152e2ce
Do one compare in the common case, united nearly identical log lines.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1665 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-24 20:41:45 +00:00
mdb
22e8bb860b
Conform to our filterable log standard:
...
Invarying text [varying text].
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1664 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-24 20:34:03 +00:00
elizabeth
2e534876b0
reverted changes made in r1661
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1663 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-23 23:10:07 +00:00
mdb
dc1ff679f5
Properly format inadvertently checked in test code.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1662 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-23 21:45:19 +00:00
elizabeth
017caac70b
Added detection of OS version to RunAnywhere
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1661 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-23 21:39:21 +00:00
ray
c6d25758e3
Don't let people trick our html widget into thinking something's commented
...
out by sneaking a "->" into the end of a font, img, or href tag.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1660 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-21 19:24:36 +00:00
mdb
a0268025f9
Make it easy to use a controller as an action listener in the standard AWT
...
style.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1659 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-21 04:21:59 +00:00
ray
6413b412f2
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1658 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-06-17 21:12:11 +00:00