當前位置: 首頁>>代碼示例>>Java>>正文


Java NullPointerException類代碼示例

本文整理匯總了Java中java.lang.NullPointerException的典型用法代碼示例。如果您正苦於以下問題:Java NullPointerException類的具體用法?Java NullPointerException怎麽用?Java NullPointerException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NullPointerException類屬於java.lang包,在下文中一共展示了NullPointerException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: AntennaFields

import java.lang.NullPointerException; //導入依賴的package包/類
public AntennaFields(@Nonnull String __typename, @Nullable Coordinates coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:19,代碼來源:AntennaFields.java

示例2: Search

import java.lang.NullPointerException; //導入依賴的package包/類
public Search(@Nonnull String __typename,
    @Nullable NearestAntennaFromOrange nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree nearestAntennaFromFree, @Nullable AsStreet asStreet,
    @Nullable AsCity asCity, @Nullable AsHouseNumber asHouseNumber) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
  this.asStreet = asStreet;
  this.asCity = asCity;
  this.asHouseNumber = asHouseNumber;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:19,代碼來源:SearchQuery.java

示例3: NearestAntennaFromOrange

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromOrange(@Nonnull String __typename, @Nullable Coordinates coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例4: NearestAntennaFromBouygues

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromBouygues(@Nonnull String __typename,
    @Nullable Coordinates1 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:24,代碼來源:SearchQuery.java

示例5: NearestAntennaFromSfr

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromSfr(@Nonnull String __typename, @Nullable Coordinates2 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例6: NearestAntennaFromFree

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromFree(@Nonnull String __typename, @Nullable Coordinates3 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例7: AsStreet

import java.lang.NullPointerException; //導入依賴的package包/類
public AsStreet(@Nonnull String __typename, @Nullable String street, @Nullable String city,
    @Nullable String zipCode, @Nullable NearestAntennaFromOrange1 nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues1 nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr1 nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree1 nearestAntennaFromFree) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.street = street;
  this.city = city;
  this.zipCode = zipCode;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:18,代碼來源:SearchQuery.java

示例8: NearestAntennaFromOrange1

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromOrange1(@Nonnull String __typename, @Nullable Coordinates4 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例9: NearestAntennaFromBouygues1

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromBouygues1(@Nonnull String __typename,
    @Nullable Coordinates5 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:24,代碼來源:SearchQuery.java

示例10: NearestAntennaFromSfr1

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromSfr1(@Nonnull String __typename, @Nullable Coordinates6 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例11: NearestAntennaFromFree1

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromFree1(@Nonnull String __typename, @Nullable Coordinates7 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例12: AsCity

import java.lang.NullPointerException; //導入依賴的package包/類
public AsCity(@Nonnull String __typename, @Nullable String city, @Nullable String zipCode,
    @Nullable NearestAntennaFromOrange2 nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues2 nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr2 nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree2 nearestAntennaFromFree) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.city = city;
  this.zipCode = zipCode;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:17,代碼來源:SearchQuery.java

示例13: NearestAntennaFromOrange2

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromOrange2(@Nonnull String __typename, @Nullable Coordinates8 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java

示例14: NearestAntennaFromBouygues2

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromBouygues2(@Nonnull String __typename,
    @Nullable Coordinates9 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:24,代碼來源:SearchQuery.java

示例15: NearestAntennaFromSfr2

import java.lang.NullPointerException; //導入依賴的package包/類
public NearestAntennaFromSfr2(@Nonnull String __typename, @Nullable Coordinates10 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
 
開發者ID:gdrouet,項目名稱:nightclazz-graphql,代碼行數:23,代碼來源:SearchQuery.java


注:本文中的java.lang.NullPointerException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。