SOROLLS - ZiehenJava

Java-Forum
Anonymous
 SOROLLS - Ziehen

Post by Anonymous »

Für das Leben von mir kann ich keine einfache String -ArrayList aus meinem generischen HashMap: HashMap < /p>
Ich habe viel kompliziertere Strukturen wie die Liste geschafft. von Objekten, die verschachtelt sind und andere Sammlungen besitzen, da sie beim Abrufen als LinkedHasMap behandelt werden. /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings["role"]
< /code>
Ich habe auch viele andere Iterationen ausprobiert. < /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList(size > 0) from (ArrayList) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List(size > 0) from (List) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
ArrayList($test : size > 0) from $mappings.get("role")
< /code>
Why is it so difficult to pull a simple ArrayList when I can pull incredibly nested structures from this hashmap.
I have ensured I have the proper imports in the .drl file.
I am using mvn dependency Drools 7.58

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • SOROLLS - Ziehen
    by Anonymous » » in Java
    0 Replies
    6 Views
    Last post by Anonymous
  • Ziehen Sie effizient und ersatzlos Zufallsstichproben aus einem Array in Python
    by Guest » » in Python
    0 Replies
    9 Views
    Last post by Guest
  • Ttk.PanedWindow.sashpos(ind, n) legt die Flügelposition beim Ziehen nicht fest
    by Guest » » in Python
    0 Replies
    11 Views
    Last post by Guest
  • So ziehen Sie Platzhalter auf ein PDF
    by Guest » » in Jquery
    0 Replies
    6 Views
    Last post by Guest
  • Zeichen aus einem Feldwert ziehen
    by Guest » » in MySql
    0 Replies
    11 Views
    Last post by Guest