<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to parse a list of custom objects in Java? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-parse-a-list-of-custom-objects-in-Java/m-p/721219#M2481</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When doing live preview, what does the data look like?&lt;/P&gt;&lt;P&gt;Can you do a live preview on the second option, and show what your class/method data returns?&lt;/P&gt;&lt;P&gt;Just hide sensitive data , if any&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 21:43:32 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2020-09-14T21:43:32Z</dc:date>
    <item>
      <title>How to parse a list of custom objects in Java?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-parse-a-list-of-custom-objects-in-Java/m-p/721218#M2480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create an information point to collect metrics on a a particular method of a particular class getting called.&lt;BR /&gt;&lt;BR /&gt;I want to customize this information point to calculate metrics based on certain values being present in the parameter object of the method. So I am using the match condition.&lt;/P&gt;&lt;P&gt;I have 2 options of classes with their methods to be used.&lt;/P&gt;&lt;P&gt;1st Option - doesnt have a toString() implementation so I have to use the Getter Chain.&lt;/P&gt;&lt;P&gt;2nd Option -&amp;nbsp;my method is a private method but the parameter object has both toString() implementation and Getter Chains.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Already tried the following and am facing certain issues on each:&lt;/P&gt;&lt;P&gt;1. I tried to use regex on toString() of the parameter of my 2nd option but for some reason its not getting any metric counts. I dont see any errors on the controller but its not working.&lt;/P&gt;&lt;P&gt;2. I tried to do getX().getY().toString() in Option 1 using Getter chain but still aint getting any metrics.&amp;nbsp;&lt;BR /&gt;3. I tried to use just the getX().getY().getZ() using Getter Chain (with both Option 1 and 2) but I am stuck at a condition.&lt;BR /&gt;getZ() returns a list of custom objects.&lt;BR /&gt;For example the custom object:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Person {&lt;/DIV&gt;&lt;DIV&gt;String name;&lt;/DIV&gt;&lt;DIV&gt;int age;&lt;/DIV&gt;&lt;DIV&gt;int somethingElse;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;(assuming there are getters, setters, hashcode, equals&amp;nbsp;and toString defined)&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;How do I do list contains name = "Harshad" ? The object with name "Harshad" can be at any index but it will be available only once.&lt;BR /&gt;I am assuming I need to use "contains". But how?&lt;BR /&gt;Can someone give some examples?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-parse-a-list-of-custom-objects-in-Java/m-p/721218#M2480</guid>
      <dc:creator>Harshad_Loya</dc:creator>
      <dc:date>2020-09-09T16:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a list of custom objects in Java?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-parse-a-list-of-custom-objects-in-Java/m-p/721219#M2481</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When doing live preview, what does the data look like?&lt;/P&gt;&lt;P&gt;Can you do a live preview on the second option, and show what your class/method data returns?&lt;/P&gt;&lt;P&gt;Just hide sensitive data , if any&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 21:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-parse-a-list-of-custom-objects-in-Java/m-p/721219#M2481</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-09-14T21:43:32Z</dc:date>
    </item>
  </channel>
</rss>

