|
Hi, all!
Is there a kind of implementation (at least partial) of java collections (Set, List, Map, Collection ...) for Delphi 2010?
I need it for make porting code from java to Delphi a little bit easier.
Started by kuaw26 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The Contnrs.pas unit has many of these types, like TStack, TBucketList, etc.
There is DeHL.
|
|
I'm learning PHP5 (last time I checked PHP was in PHP4 days) and I'm glad to see that PHP5 OO is more Java-alike than the PHP4 one but there's still an issue that makes me feel quite unconfortable because of my Java background : ARRAYS.
I'm reading "Proffesional...
Started by ktulur on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
However, in PHP, due to the dynamically typed nature, it is quite common to sacrifice... .
It makes sense to have a collection of say "Cars" and another of "Motorbikes".
Collections in Java make a lot of sense since it's a strongly typed language.
|
|
I am looking for a built-in extension method like Apply:
collection.Apply (predicate)
which will apply a method on all items contained in the collection.
I am asking first so that I don't write something that already exists.
EDIT: The reason I didn't ...
Started by Joan Venge on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Am not sure if there is something like that but why don't you use foreach, since you are applying.
|
Ask your Facebook Friends
|
Suppose you have a collection of a few hundred in-memory objects and you need to query this List to return objects matching some SQL or Criteria like query. For example, you might have a List of Car objects and you want to return all cars made during ...
Started by stian on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Potentially) object in the collection, you'll have to turn to a library like JoSQL (which has worked well), but eventually when you look at the flow of comparisons, it's pretty much just like looping over , in that it is a simple....
|
|
Hi,
I have a collection of elements on my page, and I want to see if they are visible or not currently.
So:
$(".someClass")
How can I loop through and figure this out? because if it is visible, i have to fire another function.
Started by Blankman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider a situation like this:
<div style="display:none;"><div class="someClass"></div>.
|
|
Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now?
let urlPat = "href\\s*=\\s*(?:(?:\\\"(?<url>[^\\\"]*)\\\")|(?<url>[^\\s]* ))";; let urlRegex = new Regex(urlPat...
Started by Justin Bozonier on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is available only for Seq.
Is Seq.cast what you are looking for?
Hi, you would write the last line like this:
let urls is the right target type (because it knows what matchToUrl looks like).
|
|
Hi All:
I've used VI(M) for over 2 years, and I really love its easy navigation and keyboard orientation. So except VI(VIM, gvim), I try to find more VIM-like tools(softwares) to benefit more. And I've got the following findings:
apvlv : for pdf reading...
Started by Tower Joo on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
like bvi for hex editing and have used eclim in the past to open VIM windows inside the Eclipse.
|
|
Note that I'm not actually doing anything with a database here, so ORM tools are probably not what I'm looking for.
I want to have some containers that each hold a number of objects, with all objects in one container being of the same class. The container...
Started by Hanno Fietz on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you can subclass....
ConcurrentHashMap is close, but not exactly the same.
P.P.S.
You'll also need to decide whether your class will be thread-safe or not .
You'll have to write your own!
P.S.
None of the Collections classes will do what you need.
|
|
How do I grab the controls inside of a UserControl tag?
So if this is on a Page:
<ME:NewControl ID="tblCustomList" runat="server"> // ... these controls will be used in my UserControl.aspx </ME:NewControl>
How do I access those controls in...
Started by Jon Smock on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't have a code sample here ControlCollection(this); } } }
Turns out I just needed something like this:
public TableRow DTHeader { get; set.
Give you the ability to add them like a normal aspx control.
|
|
I have always been using the stock JDK collections in my code. Does the Apache Commons Collections framework run faster?
Started by smartfairy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Anyway, like erickson.
Like it says on the project's home page :
Commons-Collections seek to build upon the JDK classes by providing new interfaces, implementations and utilities.
Collections framework.
|