{"id":4542,"date":"2012-12-14T22:00:57","date_gmt":"2012-12-14T20:00:57","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=4542"},"modified":"2012-12-14T20:41:53","modified_gmt":"2012-12-14T18:41:53","slug":"google-guava-bimaps","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html","title":{"rendered":"Google Guava BiMaps"},"content":{"rendered":"<p>Next up on my tour of <a href=\"http:\/\/code.google.com\/p\/guava-libraries\/\">Guava<\/a>, is the <a href=\"http:\/\/guava-libraries.googlecode.com\/svn\/tags\/release09\/javadoc\/com\/google\/common\/collect\/BiMap.html\">BiMap<\/a>, another useful collection type. It&#8217;s pretty simple really, a BiMap is simply a two way map.<\/p>\n<h2>Inverting a Map<\/h2>\n<p>A normal java map is a set of keys and values, and you can look up values by key, very useful, eg lets say I wanted to create a (very rudimentary) British English to American English dictionary:<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<pre class=\" brush:java\">Map&lt;String,String&gt; britishToAmerican = Maps.newHashMap();\r\nbritishToAmerican.put('aubergine','egglant');\r\nbritishToAmerican.put('courgette','zucchini');\r\nbritishToAmerican.put('jam','jelly');<\/pre>\n<p>But what if you want an American to British dictionary? Well you could write some code to invert the map:<\/p>\n<pre class=\"brush:java\">    \/\/ Generic method to reverse map.\r\n    public %lt;S,T&gt; Map&lt;T,S&gt; getInverseMap(Map&lt;S,T&gt; map) {\r\n  Map&lt;T,S&gt; inverseMap = new HashMap&lt;T,S&gt;();\r\n  for(Entry&lt;S,T&gt; entry: map.entrySet()) {\r\n   inverseMap.put(entry.getValue(), entry.getKey());\r\n  }\r\n  return inverseMap;\r\n }<\/pre>\n<p>It&#8217;ll do the job, but there&#8217;s several complications you might need to think about.<\/p>\n<ul>\n<li>How do we handle duplicate values in the original map? At the moment they&#8217;ll be silently overwritten in the reverse map.<\/li>\n<li>What if we want to put a new entry in the reversed map? We&#8217;d also have to update the original map! This could get annoying.<\/li>\n<\/ul>\n<h2>BiMaps<\/h2>\n<p>Well, guess what? This is the sort of situation a BiMap is designed for! And here&#8217;s how you might use it.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\" brush:java\">BiMap&lt;String,String&gt; britishToAmerican = HashBiMap.create();\r\n\r\n\/\/ Initialise and use just like a normal map\r\nbritishToAmerican.put('aubergine','egglant');\r\nbritishToAmerican.put('courgette','zucchini');\r\nbritishToAmerican.put('jam','jelly');\r\n\r\nSystem.out.println(britishToAmerican.get('aubergine')); \/\/ eggplant\r\n\r\nBiMap&lt;String,String&gt; americanToBritish = britishToAmerican.inverse();\r\n\r\nSystem.out.println(americanToBritish.get('eggplant')); \/\/ aubergine\r\nSystem.out.println(americanToBritish.get('zucchini')); \/\/ courgette<\/pre>\n<p>Pretty simple really, but there&#8217;s a few things to notice.<\/p>\n<h2>Enforcing uniqueness<\/h2>\n<p>Firstly the BiMap enforces uniqueness of it&#8217;s values, and will give you an illegal argument exception if you try to insert a duplicate value, ie<\/p>\n<pre class=\"brush:java\">britishToAmerican.put('pudding','dessert');\r\nbritishToAmerican.put('sweet','dessert'); \/\/ IllegalArgumentException.<\/pre>\n<p>If you need to add a values that has already been added there&#8217;s a<a href=\"http:\/\/guava-libraries.googlecode.com\/svn\/tags\/release09\/javadoc\/com\/google\/common\/collect\/BiMap.html#forcePut(K,%20V)\"><code> forcePut<\/code><\/a> method that will overwrite the entry with the duplicate value.<\/p>\n<pre class=\"brush:java\">britishToAmerican.put('pudding','dessert');\r\nbritishToAmerican.forcePut('sweet','dessert');  \/\/ Overwrites the previous entry\r\nSystem.out.println(britishToAmerican.get('sweet')); \/\/ dessert\r\nSystem.out.println(britishToAmerican.get('pudding')); \/\/ null<\/pre>\n<h2>The inverse method<\/h2>\n<p>The other crucial thing to understand is the<a href=\"http:\/\/guava-libraries.googlecode.com\/svn\/tags\/release09\/javadoc\/com\/google\/common\/collect\/BiMap.html#inverse%28%29\"><code> inverse<\/code><\/a> method, this returns the inverse BiMap, ie the a map with the keys and values switched round.<br \/>\nNow this inverse map, isn&#8217;t just a new map, such as my earlier reverseMap method might have created. It&#8217;s actually a<strong> view<\/strong> of the of the original map. This means that any subsequent changes to the inverse method will affect the original map!<\/p>\n<pre class=\"brush:java\">americanToBritish.put('potato chips','crisps');\r\nSystem.out.println(britishToAmerican.containsKey('crisps')); \/\/ true\r\nSystem.out.println(britishToAmerican.get('crisps')); \/\/ potato chips<\/pre>\n<p>So that&#8217;s the BiMap, like I said pretty simple. As usual there are several implementations available, and as ever I recommend taking a look at the full API documentation:<br \/>\n<a href=\"http:\/\/guava-libraries.googlecode.com\/svn\/tags\/release09\/javadoc\/com\/google\/common\/collect\/BiMap.html\">http:\/\/guava-libraries.googlecode.com\/svn\/tags\/release09\/javadoc\/com\/google\/common\/collect\/BiMap.html<\/a><br \/>\n&nbsp;<\/p>\n<p><strong><em>Reference: <\/em><\/strong><a href=\"http:\/\/tomjefferys.blogspot.com\/2011\/09\/bimaps.html\">Google Guava BiMaps<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Tom Jefferys at the <a href=\"http:\/\/tomjefferys.blogspot.com\/\">Tom&#8217;s Programming Blog <\/a> blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Next up on my tour of Guava, is the BiMap, another useful collection type. It&#8217;s pretty simple really, a BiMap is simply a two way map. Inverting a Map A normal java map is a set of keys and values, and you can look up values by key, very useful, eg lets say I wanted &hellip;<\/p>\n","protected":false},"author":155,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[280],"class_list":["post-4542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-google-guava"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Guava BiMaps<\/title>\n<meta name=\"description\" content=\"Next up on my tour of Guava, is the BiMap, another useful collection type. It&#039;s pretty simple really, a BiMap is simply a two way map. Inverting a Map A\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Guava BiMaps\" \/>\n<meta property=\"og:description\" content=\"Next up on my tour of Guava, is the BiMap, another useful collection type. It&#039;s pretty simple really, a BiMap is simply a two way map. Inverting a Map A\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-14T20:00:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tom Jefferys\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Jefferys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html\"},\"author\":{\"name\":\"Tom Jefferys\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/673556f9698e4cc973c6b2a033d526d9\"},\"headline\":\"Google Guava BiMaps\",\"datePublished\":\"2012-12-14T20:00:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html\"},\"wordCount\":379,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"Google Guava\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html\",\"name\":\"Google Guava BiMaps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2012-12-14T20:00:57+00:00\",\"description\":\"Next up on my tour of Guava, is the BiMap, another useful collection type. It's pretty simple really, a BiMap is simply a two way map. Inverting a Map A\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/12\\\/google-guava-bimaps.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Google Guava BiMaps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/673556f9698e4cc973c6b2a033d526d9\",\"name\":\"Tom Jefferys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g\",\"caption\":\"Tom Jefferys\"},\"sameAs\":[\"http:\\\/\\\/tomjefferys.blogspot.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Tom-Jefferys\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Guava BiMaps","description":"Next up on my tour of Guava, is the BiMap, another useful collection type. It's pretty simple really, a BiMap is simply a two way map. Inverting a Map A","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html","og_locale":"en_US","og_type":"article","og_title":"Google Guava BiMaps","og_description":"Next up on my tour of Guava, is the BiMap, another useful collection type. It's pretty simple really, a BiMap is simply a two way map. Inverting a Map A","og_url":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-12-14T20:00:57+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Tom Jefferys","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Tom Jefferys","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html"},"author":{"name":"Tom Jefferys","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/673556f9698e4cc973c6b2a033d526d9"},"headline":"Google Guava BiMaps","datePublished":"2012-12-14T20:00:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html"},"wordCount":379,"commentCount":2,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["Google Guava"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html","url":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html","name":"Google Guava BiMaps","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2012-12-14T20:00:57+00:00","description":"Next up on my tour of Guava, is the BiMap, another useful collection type. It's pretty simple really, a BiMap is simply a two way map. Inverting a Map A","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2012\/12\/google-guava-bimaps.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Google Guava BiMaps"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/673556f9698e4cc973c6b2a033d526d9","name":"Tom Jefferys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c18533c5fb898db45609a696474327815eb2fc647e934d3a87d87f0a7002173?s=96&d=mm&r=g","caption":"Tom Jefferys"},"sameAs":["http:\/\/tomjefferys.blogspot.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Tom-Jefferys"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/4542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/155"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=4542"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/4542\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=4542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=4542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=4542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}