commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1006435 [18/18] - in /websites/production/commons/content/proper/commons-rdf-parent: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/jena/ apidocs/org/apache/comm...
Date Thu, 09 Feb 2017 00:35:29 GMT
Modified: websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html
(original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html
Thu Feb  9 00:35:28 2017
@@ -25,73 +25,80 @@
 <a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong>
org.apache.commons.rdf.rdf4j.impl;
 <a class="jxr_linenumber" name="L19" href="#L19">19</a>  
-<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong>
java.util.Objects;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
java.util.Optional;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong>
org.apache.commons.rdf.rdf4j.RDF4JLiteral;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong>
org.eclipse.rdf4j.model.vocabulary.XMLSchema;
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong>
org.eclipse.rdf4j.rio.turtle.TurtleUtil;
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html">LiteralImpl</a>
<strong class="jxr_keyword">extends</strong> AbstractRDFTerm&lt;org.eclipse.rdf4j.model.Literal&gt;
<strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html">RDF4JLiteral</a>
{
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String QUOTE = <span class="jxr_string">"\&quot;"</span>;
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html">LiteralImpl</a>(<strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Literal literal) {
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>          <strong class="jxr_keyword">super</strong>(literal);
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      }
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>  
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>      @Override
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong>
Object obj) {
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">if</strong>
(obj == <strong class="jxr_keyword">this</strong>) {
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          }
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">if</strong>
(obj instanceof org.apache.commons.rdf.api.Literal) {
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <strong
class="jxr_keyword">final</strong> org.apache.commons.rdf.api.Literal other = (org.apache.commons.rdf.api.Literal)
obj;
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <strong
class="jxr_keyword">return</strong> getLexicalForm().equals(other.getLexicalForm())
&amp;&amp; getDatatype().equals(other.getDatatype())
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>                     
&amp;&amp; getLanguageTag().equals(other.getLanguageTag());
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          }
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">return</strong>
false;
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>      }
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>  
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>      @Override
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.IRI getDatatype() {
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          <strong class="jxr_keyword">return</strong>
<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/IRIImpl.html">IRIImpl</a>(value.getDatatype());
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>      }
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>  
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>      @Override
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">public</strong>
Optional&lt;String&gt; getLanguageTag() {
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">return</strong>
value.getLanguage();
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>      }
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>      @Override
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>      <strong class="jxr_keyword">public</strong>
String getLexicalForm() {
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>          <strong class="jxr_keyword">return</strong>
value.getLabel();
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>      }
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>      @Override
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> hashCode() {
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">return</strong>
Objects.hash(value.getLabel(), value.getDatatype(), value.getLanguage());
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>      }
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>  
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>      @Override
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>      <strong class="jxr_keyword">public</strong>
String ntriplesString() {
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>          <em class="jxr_comment">//
TODO: Use a more efficient StringBuffer</em>
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">final</strong>
String escaped = QUOTE + TurtleUtil.encodeString(value.getLabel()) + QUOTE;
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>          <strong class="jxr_keyword">if</strong>
(value.getLanguage().isPresent()) {
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <strong
class="jxr_keyword">return</strong> escaped + <span class="jxr_string">"@"</span>
+ value.getLanguage().get();
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>          }
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>          <strong class="jxr_keyword">if</strong>
(value.getDatatype().equals(XMLSchema.STRING)) {
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>              <strong
class="jxr_keyword">return</strong> escaped;
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>          }
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>          <strong class="jxr_keyword">return</strong>
escaped + <span class="jxr_string">"^^&lt;"</span> + TurtleUtil.encodeURIString(value.getDatatype().toString())
+ <span class="jxr_string">"&gt;"</span>;
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>      }
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>      @Override
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>      <strong class="jxr_keyword">public</strong>
String toString() {
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <strong class="jxr_keyword">return</strong>
ntriplesString();
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>  }
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong>
java.util.Locale;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
java.util.Objects;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong>
java.util.Optional;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong>
org.apache.commons.rdf.rdf4j.RDF4JLiteral;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong>
org.eclipse.rdf4j.model.vocabulary.XMLSchema;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong>
org.eclipse.rdf4j.rio.turtle.TurtleUtil;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html">LiteralImpl</a>
<strong class="jxr_keyword">extends</strong> AbstractRDFTerm&lt;org.eclipse.rdf4j.model.Literal&gt;
<strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html">RDF4JLiteral</a>
{
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String QUOTE = <span class="jxr_string">"\&quot;"</span>;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/LiteralImpl.html">LiteralImpl</a>(<strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Literal literal) {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <strong class="jxr_keyword">super</strong>(literal);
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      }
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> String lowerCase(String langTag) {

+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">return</strong>
langTag.toLowerCase(Locale.ROOT);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      }
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Override
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong>
Object obj) {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">if</strong>
(obj == <strong class="jxr_keyword">this</strong>) {
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          }
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">if</strong>
(obj instanceof org.apache.commons.rdf.api.Literal) {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              <strong
class="jxr_keyword">final</strong> org.apache.commons.rdf.api.Literal other = (org.apache.commons.rdf.api.Literal)
obj;
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <strong
class="jxr_keyword">return</strong> getLexicalForm().equals(other.getLexicalForm())
&amp;&amp; 
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>                     
getDatatype().equals(other.getDatatype()) &amp;&amp;
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                     
getLanguageTag().map(LiteralImpl::lowerCase).equals(
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>                     
        other.getLanguageTag().map(LiteralImpl::lowerCase));
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">return</strong>
false;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      }
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      @Override
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.IRI getDatatype() {
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          <strong class="jxr_keyword">return</strong>
<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rdf/rdf4j/impl/IRIImpl.html">IRIImpl</a>(value.getDatatype());
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      }
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>      @Override
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      <strong class="jxr_keyword">public</strong>
Optional&lt;String&gt; getLanguageTag() {
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          <strong class="jxr_keyword">return</strong>
value.getLanguage();
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>      }
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>      @Override
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      <strong class="jxr_keyword">public</strong>
String getLexicalForm() {
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">return</strong>
value.getLabel();
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>      }
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>  
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>      @Override
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> hashCode() {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">return</strong>
Objects.hash(value.getLabel(), value.getDatatype(), 
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                  getLanguageTag().map(LiteralImpl::lowerCase));
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>      }
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      @Override
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">public</strong>
String ntriplesString() {
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          <em class="jxr_comment">//
TODO: Use a more efficient StringBuffer</em>
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          <strong class="jxr_keyword">final</strong>
String escaped = QUOTE + TurtleUtil.encodeString(value.getLabel()) + QUOTE;
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          <strong class="jxr_keyword">if</strong>
(value.getLanguage().isPresent()) {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              <strong
class="jxr_keyword">return</strong> escaped + <span class="jxr_string">"@"</span>
+ value.getLanguage().get();
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">if</strong>
(value.getDatatype().equals(XMLSchema.STRING)) {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              <strong
class="jxr_keyword">return</strong> escaped;
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          }
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          <strong class="jxr_keyword">return</strong>
escaped + <span class="jxr_string">"^^&lt;"</span> + TurtleUtil.encodeURIString(value.getDatatype().toString())
+ <span class="jxr_string">"&gt;"</span>;
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>      }
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>  
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>      @Override
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>      <strong class="jxr_keyword">public</strong>
String toString() {
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          <strong class="jxr_keyword">return</strong>
ntriplesString();
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      }
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/simple/LiteralImpl.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/simple/LiteralImpl.html
(original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref/org/apache/commons/rdf/simple/LiteralImpl.html
Thu Feb  9 00:35:28 2017
@@ -60,7 +60,7 @@
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>  
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/simple/LiteralImpl.html">LiteralImpl</a>(<strong
class="jxr_keyword">final</strong> String literal, <strong class="jxr_keyword">final</strong>
String languageTag) {
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">this</strong>.lexicalForm
= Objects.requireNonNull(literal);
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">this</strong>.languageTag
= Objects.requireNonNull(languageTag).toLowerCase(Locale.ENGLISH);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">this</strong>.languageTag
= Objects.requireNonNull(lowerCase(languageTag));
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">if</strong>
(languageTag.isEmpty()) {
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>              <em class="jxr_comment">//
TODO: Check against</em>
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>              <em class="jxr_comment">//
http://www.w3.org/TR/n-triples/#n-triples-grammar</em>
@@ -124,20 +124,24 @@
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>         <strong
class="jxr_keyword">return</strong> Objects.hash(lexicalForm, dataType, languageTag);
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>     }
 <a class="jxr_linenumber" name="L118" href="#L118">118</a> 
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>     @Override
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong>
Object obj) {
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <strong
class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>
== obj) {
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>         }
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>         <strong
class="jxr_keyword">if</strong> (obj == <strong class="jxr_keyword">null</strong>
|| !(obj instanceof Literal)) {
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>             <strong
class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>         }
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>         <strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/Literal.html">Literal</a>
literal = (Literal) obj;
-<a class="jxr_linenumber" name="L128" href="#L128">128</a>         <strong
class="jxr_keyword">return</strong> getDatatype().equals(literal.getDatatype()) &amp;&amp;
getLexicalForm().equals(literal.getLexicalForm())
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>                 &amp;&amp;
getLanguageTag().equals(literal.getLanguageTag());
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>     }
-<a class="jxr_linenumber" name="L131" href="#L131">131</a> 
-<a class="jxr_linenumber" name="L132" href="#L132">132</a> }
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> String lowerCase(String langTag) {

+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         <strong
class="jxr_keyword">return</strong> langTag.toLowerCase(Locale.ROOT);
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>     }
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>     
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>     @Override
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong>
Object obj) {
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <strong
class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>
== obj) {
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         }
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         <strong
class="jxr_keyword">if</strong> (obj == <strong class="jxr_keyword">null</strong>
|| !(obj instanceof Literal)) {
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>             <strong
class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         }
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         <strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/Literal.html">Literal</a>
literal = (Literal) obj;
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         <strong
class="jxr_keyword">return</strong> getDatatype().equals(literal.getDatatype()) &amp;&amp;
getLexicalForm().equals(literal.getLexicalForm())
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>                 &amp;&amp;
getLanguageTag().equals(literal.getLanguageTag().map(LiteralImpl::lowerCase));
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>     }
+<a class="jxr_linenumber" name="L135" href="#L135">135</a> 
+<a class="jxr_linenumber" name="L136" href="#L136">136</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>



Mime
View raw message