本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.writeDouble方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.writeDouble方法的具体用法?Java CodedOutputByteBufferNano.writeDouble怎么用?Java CodedOutputByteBufferNano.writeDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.writeDouble方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (Double.doubleToLongBits(this.altitude) != Double.doubleToLongBits(0.0D)) {
paramCodedOutputByteBufferNano.writeDouble(1, this.altitude);
}
if (Double.doubleToLongBits(this.latitude) != Double.doubleToLongBits(0.0D)) {
paramCodedOutputByteBufferNano.writeDouble(2, this.latitude);
}
if (Double.doubleToLongBits(this.longitude) != Double.doubleToLongBits(0.0D)) {
paramCodedOutputByteBufferNano.writeDouble(3, this.longitude);
}
if (Float.floatToIntBits(this.accuracy) != Float.floatToIntBits(0.0F)) {
paramCodedOutputByteBufferNano.writeFloat(4, this.accuracy);
}
if (Double.doubleToLongBits(this.timeInMs) != Double.doubleToLongBits(-1.0D)) {
paramCodedOutputByteBufferNano.writeDouble(5, this.timeInMs);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例2: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasLatitude) || (Double.doubleToLongBits(this.latitude) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(1, this.latitude);
}
if ((this.hasLongitude) || (Double.doubleToLongBits(this.longitude) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(2, this.longitude);
}
if ((this.hasAccuracyInMeters) || (this.accuracyInMeters != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(3, this.accuracyInMeters);
}
if ((this.hasTimestamp) || (this.timestamp != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(4, this.timestamp);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例3: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (this.rule != null) {
paramCodedOutputByteBufferNano.writeMessage(1, this.rule);
}
if ((this.actualStringValue != null) && (this.actualStringValue.length > 0)) {
for (int m = 0; m < this.actualStringValue.length; m++)
{
String str = this.actualStringValue[m];
if (str != null) {
paramCodedOutputByteBufferNano.writeString(2, str);
}
}
}
if ((this.actualLongValue != null) && (this.actualLongValue.length > 0)) {
for (int k = 0; k < this.actualLongValue.length; k++) {
paramCodedOutputByteBufferNano.writeInt64(3, this.actualLongValue[k]);
}
}
if ((this.actualBoolValue != null) && (this.actualBoolValue.length > 0)) {
for (int j = 0; j < this.actualBoolValue.length; j++) {
paramCodedOutputByteBufferNano.writeBool(4, this.actualBoolValue[j]);
}
}
if ((this.actualDoubleValue != null) && (this.actualDoubleValue.length > 0)) {
for (int i = 0; i < this.actualDoubleValue.length; i++) {
paramCodedOutputByteBufferNano.writeDouble(5, this.actualDoubleValue[i]);
}
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例4: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasBrowseUrl) || (!this.browseUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.browseUrl);
}
if ((this.hasNextPageUrl) || (!this.nextPageUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(2, this.nextPageUrl);
}
if ((this.hasRelevance) || (Double.doubleToLongBits(this.relevance) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(3, this.relevance);
}
if ((this.hasEstimatedResults) || (this.estimatedResults != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(4, this.estimatedResults);
}
if ((this.hasAnalyticsCookie) || (!this.analyticsCookie.equals(""))) {
paramCodedOutputByteBufferNano.writeString(5, this.analyticsCookie);
}
if ((this.hasOrdered) || (this.ordered)) {
paramCodedOutputByteBufferNano.writeBool(6, this.ordered);
}
if ((this.containerView != null) && (this.containerView.length > 0)) {
for (int i = 0; i < this.containerView.length; i++)
{
Containers.ContainerView localContainerView = this.containerView[i];
if (localContainerView != null) {
paramCodedOutputByteBufferNano.writeMessage(7, localContainerView);
}
}
}
if (this.leftIcon != null) {
paramCodedOutputByteBufferNano.writeMessage(8, this.leftIcon);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例5: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasName) || (!this.name.equals(""))) {
paramCodedOutputByteBufferNano.writeString(3, this.name);
}
if ((this.hasTimeInMs) || (Double.doubleToLongBits(this.timeInMs) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(4, this.timeInMs);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例6: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.document != null) && (this.document.length > 0)) {
for (int i = 0; i < this.document.length; i++)
{
DocV1 localDocV1 = this.document[i];
if (localDocV1 != null) {
paramCodedOutputByteBufferNano.writeMessage(1, localDocV1);
}
}
}
if ((this.hasMultiCorpus) || (this.multiCorpus)) {
paramCodedOutputByteBufferNano.writeBool(2, this.multiCorpus);
}
if ((this.hasTitle) || (!this.title.equals(""))) {
paramCodedOutputByteBufferNano.writeString(3, this.title);
}
if ((this.hasIconUrl) || (!this.iconUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(4, this.iconUrl);
}
if ((this.hasFullContentsUrl) || (!this.fullContentsUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(5, this.fullContentsUrl);
}
if ((this.hasRelevance) || (Double.doubleToLongBits(this.relevance) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(6, this.relevance);
}
if ((this.hasEstimatedResults) || (this.estimatedResults != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(7, this.estimatedResults);
}
if ((this.hasAnalyticsCookie) || (!this.analyticsCookie.equals(""))) {
paramCodedOutputByteBufferNano.writeString(8, this.analyticsCookie);
}
if ((this.hasFullContentsListUrl) || (!this.fullContentsListUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(9, this.fullContentsListUrl);
}
if ((this.hasNextPageUrl) || (!this.nextPageUrl.equals(""))) {
paramCodedOutputByteBufferNano.writeString(10, this.nextPageUrl);
}
if ((this.hasOrdered) || (this.ordered)) {
paramCodedOutputByteBufferNano.writeBool(11, this.ordered);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例7: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.type != 1) || (this.hasType)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.type);
}
if ((this.hasStarRating) || (Float.floatToIntBits(this.starRating) != Float.floatToIntBits(0.0F))) {
paramCodedOutputByteBufferNano.writeFloat(2, this.starRating);
}
if ((this.hasRatingsCount) || (this.ratingsCount != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(3, this.ratingsCount);
}
if ((this.hasOneStarRatings) || (this.oneStarRatings != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(4, this.oneStarRatings);
}
if ((this.hasTwoStarRatings) || (this.twoStarRatings != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(5, this.twoStarRatings);
}
if ((this.hasThreeStarRatings) || (this.threeStarRatings != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(6, this.threeStarRatings);
}
if ((this.hasFourStarRatings) || (this.fourStarRatings != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(7, this.fourStarRatings);
}
if ((this.hasFiveStarRatings) || (this.fiveStarRatings != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(8, this.fiveStarRatings);
}
if ((this.hasThumbsUpCount) || (this.thumbsUpCount != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(9, this.thumbsUpCount);
}
if ((this.hasThumbsDownCount) || (this.thumbsDownCount != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(10, this.thumbsDownCount);
}
if ((this.hasCommentCount) || (this.commentCount != 0L)) {
paramCodedOutputByteBufferNano.writeUInt64(11, this.commentCount);
}
if ((this.hasBayesianMeanRating) || (Double.doubleToLongBits(this.bayesianMeanRating) != Double.doubleToLongBits(0.0D))) {
paramCodedOutputByteBufferNano.writeDouble(12, this.bayesianMeanRating);
}
if ((this.tip != null) && (this.tip.length > 0)) {
for (int i = 0; i < this.tip.length; i++)
{
Rating.Tip localTip = this.tip[i];
if (localTip != null) {
paramCodedOutputByteBufferNano.writeMessage(13, localTip);
}
}
}
super.writeTo(paramCodedOutputByteBufferNano);
}