guava
Google collect import in Drools
When I try to import MultiMap in Drools rule it caused an error below [11,25]: [ERR 102] Line 11:25 mismatched input \'COLLECT\' expecting \'identifier\' in import[详细]
2023-03-30 03:11 分类:问答First element in tree becoming null? Guava TreebasedTable
So I am having a problem with a Guava TreeBasedTable (if you\'re unfamiliar, it\'s a tree that accesses its elements based on a pair of keys) which over the past week has been a bear to figure out. I\[详细]
2023-03-29 17:48 分类:问答Parsing Logs Using Google Guava
I am looking at way of parsing log file having log -- (Using Google Guava) in below format: Sep 19 2006 13:23:40 MyDevice [latency][info] xmlfirewall (loopback-fw): tid(2809): Latency: 0 1 0 1 1 0 0[详细]
2023-03-29 15:54 分类:问答Java: "cons" an item to a list
I have an Item which has a method List<Item> getChildren() (which returns an immutable list) and for each of the items I have, I need to create a list of the item followed by its children.[详细]
2023-03-28 19:32 分类:问答reliably forcing Guava map eviction to take place
EDIT: I\'ve reorganized this question to reflect the new information that since became available. This question is based on the responses to a question by Viliam concerning Guava Maps\' use of lazy e[详细]
2023-03-28 10:56 分类:问答In Java, how can I use the inputStream from a process with Google's guava CharStreams.toString?
I am executing a process and want to read in its output into a String.Rather than deal wit开发者_运维知识库h try/catch/finally, I am hoping to use the Guava CharStreams.toString(InputSupplier<R>[详细]
2023-03-27 17:18 分类:问答Is there an ImmutableBitSet in Java?
Is there any Java library offering an ImmutableBitSet? I开发者_运维问答 didn\'t find any, neither Guava nor using Google.You could use BigInteger, since it has setBit, testBit and clearBit.A workaroun[详细]
2023-03-27 14:38 分类:问答Java Sort a Guava TreeBasedTable
I have a TreeBasedTable object from Guava (Gooogle Collections). It is in the form of TreeBasedTable<k1, k2, v>. k1 and k2 implement Comparable. Now when I display the table, I want the user to[详细]
2023-03-26 21:38 分类:问答Can Guava's AbstractExecutionThreadService be reused?
As far as I can tell, once the run() method of AbstractExecutionThreadService stops, it can\'t be started again. Is that correct?[详细]
2023-03-26 06:18 分类:问答google-guava MapMaker .softValues() - values don't get GC-ed, OOME: HeapSpace follows
I am having trouble using the MapMaker from google-guava. Here is the code: package test; import java.lang.ref.SoftReference;[详细]
2023-03-25 18:34 分类:问答