java.lang.CharSequence Java Examples

The following examples show how to use java.lang.CharSequence. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PropDefaultsViewModel_.java    From epoxy with Apache License 2.0 6 votes vote down vote up
@Override
public PropDefaultsViewModel_ reset() {
  onModelBoundListener_epoxyGeneratedModel = null;
  onModelUnboundListener_epoxyGeneratedModel = null;
  onModelVisibilityStateChangedListener_epoxyGeneratedModel = null;
  onModelVisibilityChangedListener_epoxyGeneratedModel = null;
  assignedAttributes_epoxyGeneratedModel.clear();
  this.defaultsToNull_CharSequence = (CharSequence) null;
  this.noDefaultSoItIsRequired_CharSequence = null;
  this.primitivesHaveImplicitDefaultsAndCannotBeRequired_Int = 0;
  this.primitiveWithExplicitDefault_Int = PropDefaultsView.PRIMITIVE_DEFAULT;
  this.objectWithDefault_String = PropDefaultsView.STRING_DEFAULT;
  this.objectWithDefaultAndNullable_String = PropDefaultsView.STRING_DEFAULT;
  super.reset();
  return this;
}
 
Example #2
Source File: UnitFormat.java    From microMathematics with GNU General Public License v3.0 6 votes vote down vote up
private long readLong (CharSequence csq, ParsePosition pos) {
    final int length = csq.length();
    int result = 0;
    boolean isNegative = false;
    while (pos.getIndex() < length) {
        char c = csq.charAt(pos.getIndex());
        if (c == '-') {
            isNegative = true;
        } else if ((c >= '0') && (c <= '9')) {
            result = result * 10 + (c - '0');
        } else {
            break;
        }
        pos.setIndex(pos.getIndex()+1);
    }
    return isNegative ? -result : result;
}
 
Example #3
Source File: TestManyTypesViewModel_.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public TestManyTypesViewModel_ reset() {
  onModelBoundListener_epoxyGeneratedModel = null;
  onModelUnboundListener_epoxyGeneratedModel = null;
  onModelVisibilityStateChangedListener_epoxyGeneratedModel = null;
  onModelVisibilityChangedListener_epoxyGeneratedModel = null;
  assignedAttributes_epoxyGeneratedModel.clear();
  this.stringValue_String = null;
  this.nullableStringValue_String = (String) null;
  this.intValue_Int = 0;
  this.intValueWithAnnotation_Int = 0;
  this.intValueWithRangeAnnotation_Int = 0;
  this.intValueWithDimenTypeAnnotation_Int = 0;
  this.intWithMultipleAnnotations_Int = 0;
  this.integerValue_Integer = null;
  this.boolValue_Boolean = false;
  this.booleanValue_Boolean = null;
  this.arrayValue_StringArray = null;
  this.listValue_List = null;
  this.clickListener_OnClickListener = null;
  this.title_StringAttributeData =  new StringAttributeData((CharSequence) null);
  super.reset();
  return this;
}
 
Example #4
Source File: UnitFormat.java    From microMathematics with GNU General Public License v3.0 5 votes vote down vote up
private void check(boolean expr, String message, CharSequence csq,
        int index) throws ParseException {
    if (!expr) {
        throw new ParseException(message + " (in " + csq
                + " at index " + index + ")", index);
    }
}
 
Example #5
Source File: AutoValue_TestClassBundled.java    From auto-value-bundle with MIT License 5 votes vote down vote up
AutoValue_TestClassBundled(Bundle bundle, byte someByte, boolean someBoolean, short someShort,
        int someInt, long someLong, char someChar, float someFloat, double someDouble,
        String someString, CharSequence someCharSequence, Parcelable someParcelable,
        ArrayList<Parcelable> someParcelableArrayList,
        SparseArray<Parcelable> someParcelableSparseArray, Serializable someSerializable,
        ArrayList<Integer> someIntegerArrayList, ArrayList<String> someStringArrayList,
        ArrayList<CharSequence> someCharSequenceArrayList, byte[] someByteArray,
        short[] someShortArray, char[] someCharArray, float[] someFloatArray,
        UnknownObject someUnknownObject, ArrayList<UnknownObject> someUnknownObjectList,
        TestEnum testEnum) {
    super(bundle,
            someByte,
            someBoolean,
            someShort,
            someInt,
            someLong,
            someChar,
            someFloat,
            someDouble,
            someString,
            someCharSequence,
            someParcelable,
            someParcelableArrayList,
            someParcelableSparseArray,
            someSerializable,
            someIntegerArrayList,
            someStringArrayList,
            someCharSequenceArrayList,
            someByteArray,
            someShortArray,
            someCharArray,
            someFloatArray,
            someUnknownObject,
            someUnknownObjectList,
            testEnum);
}
 
Example #6
Source File: OnVisibilityChangedViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@NonNull
public CharSequence title() {
  return title_CharSequence;
}
 
Example #7
Source File: TestAfterBindPropsViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public TestAfterBindPropsViewModel_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #8
Source File: AutoLayoutModelViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public AutoLayoutModelViewModel_ id(@Nullable CharSequence arg0, @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #9
Source File: ModelWithViewLongClickListener_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithViewLongClickListener_ id(@Nullable CharSequence arg0,
    @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #10
Source File: DataBindingModelWithAllFieldTypes_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public DataBindingModelWithAllFieldTypes_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #11
@Override
public ModelWithAnnotatedClassAndSuperAttributes$SubModelWithAnnotatedClassAndSuperAttributes_ id(
    @Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #12
Source File: PropGroupsViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@NonNull
public CharSequence somethingElseCharSequence() {
  return somethingElse_CharSequence;
}
 
Example #13
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void currentText(CharSequence arg) {
  return BaseDSL.attr("currentText", arg);
}
 
Example #14
Source File: OnViewRecycledViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public OnViewRecycledViewModel_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #15
Source File: ModelWithoutHash_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithoutHash_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #16
Source File: GenerateDefaultLayoutMethodParentLayout$WithLayout_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public GenerateDefaultLayoutMethodParentLayout$WithLayout_ id(@Nullable CharSequence arg0,
    @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #17
Source File: ModelWithVarargsConstructors_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithVarargsConstructors_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #18
Source File: ModelReturningClassType_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelReturningClassType_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #19
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void hint(CharSequence arg) {
  return BaseDSL.attr("hint", arg);
}
 
Example #20
Source File: ModelWithViewLongClickListener_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithViewLongClickListener_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #21
Source File: AllTypesModelViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public AllTypesModelViewModel_ id(@Nullable CharSequence arg0, @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #22
Source File: AllTypesModelViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public AllTypesModelViewModel_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #23
Source File: TestFieldPropDoNotHashOptionViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public TestFieldPropDoNotHashOptionViewModel_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #24
Source File: OnVisibilityChangedViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public OnVisibilityChangedViewModel_ id(@Nullable CharSequence arg0,
    @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #25
Source File: BaseModelViewWithSuperDiffBindModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public BaseModelViewModel_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #26
Source File: ModelWithSuperAttributes$SubModelWithSuperAttributes_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithSuperAttributes$SubModelWithSuperAttributes_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}
 
Example #27
Source File: ModelWithoutHash_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithoutHash_ id(@Nullable CharSequence arg0, long arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #28
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void queryHint(CharSequence arg) {
  return BaseDSL.attr("queryHint", arg);
}
 
Example #29
Source File: TestFieldPropDoNotHashOptionViewModel_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public TestFieldPropDoNotHashOptionViewModel_ id(@Nullable CharSequence arg0,
    @Nullable CharSequence... arg1) {
  super.id(arg0, arg1);
  return this;
}
 
Example #30
Source File: ModelWithFinalField_.java    From epoxy with Apache License 2.0 4 votes vote down vote up
@Override
public ModelWithFinalField_ id(@Nullable CharSequence arg0) {
  super.id(arg0);
  return this;
}