Add hasNext() to the *Iterator interfaces in org.apache.http.legacy

Bug: 129975435
Test: atest CtsSharedLibsApiSignatureTestCases
Change-Id: I642ed9f36fab76e6cd0bd3450099b9ffc35e5a1c
(cherry picked from commit afd489dbcef49d723af88d913542c247c61b7024)
diff --git a/29/public/api/org.apache.http.legacy.txt b/29/public/api/org.apache.http.legacy.txt
index a04d0cd..265d5e0 100644
--- a/29/public/api/org.apache.http.legacy.txt
+++ b/29/public/api/org.apache.http.legacy.txt
@@ -872,10 +872,12 @@
 
   @Deprecated public interface HeaderElementIterator extends java.util.Iterator {
     method @Deprecated public org.apache.http.HeaderElement nextElement();
+    method @Deprecated public boolean hasNext();
   }
 
   @Deprecated public interface HeaderIterator extends java.util.Iterator {
     method @Deprecated public org.apache.http.Header nextHeader();
+    method @Deprecated public boolean hasNext();
   }
 
   @Deprecated public interface HttpClientConnection extends org.apache.http.HttpConnection {
@@ -1143,6 +1145,7 @@
 
   @Deprecated public interface TokenIterator extends java.util.Iterator {
     method @Deprecated public String nextToken();
+    method @Deprecated public boolean hasNext();
   }
 
   @Deprecated public class UnsupportedHttpVersionException extends org.apache.http.ProtocolException {