//
//  Generated by the J2ObjC translator.  DO NOT EDIT!
//  source: android/libcore/luni/src/main/java/java/text/Format.java
//

#ifndef _JavaTextFormat_H_
#define _JavaTextFormat_H_

#include "J2ObjC_header.h"
#include "java/io/Serializable.h"
#include "java/text/AttributedCharacterIterator.h"

@class JavaLangStringBuffer;
@class JavaTextFieldPosition;
@class JavaTextParsePosition;
@protocol JavaTextAttributedCharacterIterator;

@interface JavaTextFormat : NSObject < JavaIoSerializable, NSCopying >

#pragma mark Public

- (id)clone;

- (NSString *)formatWithId:(id)object;

- (JavaLangStringBuffer *)formatWithId:(id)object
              withJavaLangStringBuffer:(JavaLangStringBuffer *)buffer
             withJavaTextFieldPosition:(JavaTextFieldPosition *)field;

- (id<JavaTextAttributedCharacterIterator>)formatToCharacterIteratorWithId:(id)object;

- (id)parseObjectWithNSString:(NSString *)string;

- (id)parseObjectWithNSString:(NSString *)string
    withJavaTextParsePosition:(JavaTextParsePosition *)position;

#pragma mark Protected

- (instancetype)init;

#pragma mark Package-Private

+ (jboolean)upToWithNSString:(NSString *)string
   withJavaTextParsePosition:(JavaTextParsePosition *)position
    withJavaLangStringBuffer:(JavaLangStringBuffer *)buffer
                    withChar:(jchar)stop;

+ (jboolean)upToWithQuotesWithNSString:(NSString *)string
             withJavaTextParsePosition:(JavaTextParsePosition *)position
              withJavaLangStringBuffer:(JavaLangStringBuffer *)buffer
                              withChar:(jchar)stop
                              withChar:(jchar)start;

@end

J2OBJC_EMPTY_STATIC_INIT(JavaTextFormat)

FOUNDATION_EXPORT void JavaTextFormat_init(JavaTextFormat *self);

FOUNDATION_EXPORT jboolean JavaTextFormat_upToWithNSString_withJavaTextParsePosition_withJavaLangStringBuffer_withChar_(NSString *string, JavaTextParsePosition *position, JavaLangStringBuffer *buffer, jchar stop);

FOUNDATION_EXPORT jboolean JavaTextFormat_upToWithQuotesWithNSString_withJavaTextParsePosition_withJavaLangStringBuffer_withChar_withChar_(NSString *string, JavaTextParsePosition *position, JavaLangStringBuffer *buffer, jchar stop, jchar start);

J2OBJC_TYPE_LITERAL_HEADER(JavaTextFormat)

@interface JavaTextFormat_Field : JavaTextAttributedCharacterIterator_Attribute

#pragma mark Protected

- (instancetype)initWithNSString:(NSString *)fieldName;

@end

J2OBJC_EMPTY_STATIC_INIT(JavaTextFormat_Field)

FOUNDATION_EXPORT void JavaTextFormat_Field_initWithNSString_(JavaTextFormat_Field *self, NSString *fieldName);

FOUNDATION_EXPORT JavaTextFormat_Field *new_JavaTextFormat_Field_initWithNSString_(NSString *fieldName) NS_RETURNS_RETAINED;

J2OBJC_TYPE_LITERAL_HEADER(JavaTextFormat_Field)

#endif // _JavaTextFormat_H_
