Gets the {@link VTimezone} components that need to be written to the
output stream.
@return the components
973703
protected Collection<VTimezone> getTimezoneComponents() {
		if (globalTimezone != null) {
			VTimezone component = globalTimezone.getComponent();
			return (component == null) ? Collections.<VTimezone> emptyList() : Arrays.asList(component);
		}

		return tzinfo.getComponents();
	}
311263
public static Collection<Component> getComponentsList() {
    TransactionLogger instance = getInstance();
    if (instance == null) {
      return null;
    }

    return instance.components.values();
  }
152112
private float[] generateParticleTimeStamps(float totalTime)
    {
        float timeStamps[] = new float[mEmitRate * 2];

        if ( burstMode ) {
            for (int i = 0; i < mEmitRate * 2; i += 2) {
                timeStamps[i] = totalTime;
                timeStamps[i + 1] = 0;
            }
        }
        else {
            for (int i = 0; i < mEmitRate * 2; i += 2) {
                timeStamps[i] = totalTime + mRandom.nextFloat();
                timeStamps[i + 1] = 0;
            }
        }
        return timeStamps;

    }
94070
public DateTimeZone getTimeZone()
    {
        return this.attrValues.get(Person.AttrName.TIMZONE) != null
                        ? DateTimeZone.forID(this.attrValues.get(Person.AttrName.TIMZONE))
                        : DateTimeZone.UTC;
    }
840453
public TimeZone getTimeZone()
    {
        // If the TimeZone object is shared by other Calendar instances, then
        // create a clone.
        if (sharedZone) {
            zone = (TimeZone) zone.clone();
            sharedZone = false;
        }
        return zone;
    }
627760
public String getTimeline() {
    StringBuilder builder = new StringBuilder();
    for (Event event : events) {
      builder.append(event.name()).append(":").append(event.timestamp()).append(";");
    }
    return builder.toString();
  }
617996
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
    if (typeCase_ == 5) {
      return (com.google.protobuf.Timestamp) type_;
    }
    return com.google.protobuf.Timestamp.getDefaultInstance();
  }
546705
public SortedSet<TimeInterval> getTimeGapIntervals() {
		SortedSet<TimeInterval> flattenedIntervals = getFlattenedIntervals();
		SortedSet<TimeInterval> gaps = new TreeSet<TimeInterval>();

		TimeInterval previous = null;
		for (TimeInterval timeInterval : flattenedIntervals) {
			if (previous != null) {
				long from = previous.getTo();
				long to = timeInterval.getFrom();
				TimeInterval gap = new TimeInterval(from, to);
				gaps.add(gap);
			}
			previous = timeInterval;
		}

		return gaps;
	}
731937
public Map<String, List<ExecutorDetails>> getNeedsSchedulingComponentToExecutors(TopologyDetails topology) {
        Map<ExecutorDetails, String> executorToComponents = this.getNeedsSchedulingExecutorToComponents(topology);
        Map<String, List<ExecutorDetails>> componentToExecutors = new HashMap<>();
        for (ExecutorDetails executor : executorToComponents.keySet()) {
            String component = executorToComponents.get(executor);
            if (!componentToExecutors.containsKey(component)) {
                componentToExecutors.put(component, new ArrayList<ExecutorDetails>());
            }

            componentToExecutors.get(component).add(executor);
        }

        return componentToExecutors;
    }
433194
public Collection<ServletTimer> getTimers() {
		if(!isValid()) {
			throw new IllegalStateException("SipApplicationSession already invalidated !");
		}
		if(servletTimers != null) {
			return servletTimers.values();
		}
		return new HashMap<String, ServletTimer>().values();
	}
1271524
public ResultsMap<String, List<String>> getTimezones() throws MovieDbException {
        URL url = new ApiUrl(apiKey, MethodBase.TIMEZONES).subMethod(MethodSub.LIST).buildUrl();
        String webpage = httpTools.getRequest(url);

        List<Map<String, List<String>>> tzList;
        try {
            tzList = MAPPER.readValue(webpage, new TypeReference<List<Map<String, List<String>>>>() {
            });
        } catch (IOException ex) {
            throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get timezone list", url, ex);
        }

        ResultsMap<String, List<String>> timezones = new ResultsMap<>();

        for (Map<String, List<String>> tzMap : tzList) {
            for (Map.Entry<String, List<String>> x : tzMap.entrySet()) {
                timezones.put(x.getKey(), x.getValue());
            }
        }

        return timezones;
    }
350081
public static String getSerializedVectorClocks(List<VectorClock> vectorClocks) {
        List<VectorClockWrapper> vectorClockWrappers = new ArrayList<VectorClockWrapper>();
        for(VectorClock vc: vectorClocks) {
            vectorClockWrappers.add(new VectorClockWrapper(vc));
        }
        String serializedVC = "";
        try {
            serializedVC = mapper.writeValueAsString(vectorClockWrappers);
        } catch(Exception e) {
            e.printStackTrace();
        }
        return serializedVC;
    }
717942
@Override public List<TimephasedWork> getData()
   {
      if (m_raw)
      {
         m_normaliser.normalise(m_calendar, m_data);
         m_raw = false;
      }
      return m_data;
   }
1260610
public java.util.List<VTLDevice> getVTLDevices() {
        if (vTLDevices == null) {
            vTLDevices = new com.amazonaws.internal.SdkInternalList<VTLDevice>();
        }
        return vTLDevices;
    }
353258
public List<LocalTime> asList() {
        List<LocalTime> times = new ArrayList<>();
        for (LocalTime time : this) {
            times.add(time);
        }
        return times;
    }
1128288
private int[] getTzComponents(ZonedDateTime d) {
    ZoneOffset offset = d.getOffset();
    int secs = offset.getTotalSeconds();
    boolean negative = secs < 0;
    if (negative) {
      secs = -secs;
    }
    int hours = secs / 3600;
    int mins = (secs % 3600) / 60;
    return new int[] { negative ? -1 : 1, secs, hours, mins };
  }
883610
public static VCalTimezoneProperties convert(VTimezone timezone, List<Date> dates) {
		List<Daylight> daylights = new ArrayList<Daylight>();
		Timezone tz = null;
		if (dates.isEmpty()) {
			return new VCalTimezoneProperties(daylights, tz);
		}

		ICalTimeZone icalTz = new ICalTimeZone(timezone);
		Collections.sort(dates);
		Set<DateTimeValue> daylightStartDates = new HashSet<DateTimeValue>();
		boolean zeroObservanceUsed = false;
		for (Date date : dates) {
			Boundary boundary = icalTz.getObservanceBoundary(date);
			Observance observance = boundary.getObservanceIn();
			Observance observanceAfter = boundary.getObservanceAfter();
			if (observance == null && observanceAfter == null) {
				continue;
			}

			if (observance == null) {
				//the date comes before the earliest observance
				if (observanceAfter instanceof StandardTime && !zeroObservanceUsed) {
					UtcOffset offset = getOffset(observanceAfter.getTimezoneOffsetFrom());
					DateTimeValue start = null;
					DateTimeValue end = boundary.getObservanceAfterStart();
					String standardName = icalTz.getDisplayName(false, TimeZone.SHORT);
					String daylightName = icalTz.getDisplayName(true, TimeZone.SHORT);

					Daylight daylight = new Daylight(true, offset, convert(start), convert(end), standardName, daylightName);
					daylights.add(daylight);
					zeroObservanceUsed = true;
				}

				if (observanceAfter instanceof DaylightSavingsTime) {
					UtcOffset offset = getOffset(observanceAfter.getTimezoneOffsetFrom());
					if (offset != null) {
						tz = new Timezone(offset);
					}
				}

				continue;
			}

			if (observance instanceof StandardTime) {
				UtcOffset offset = getOffset(observance.getTimezoneOffsetTo());
				if (offset != null) {
					tz = new Timezone(offset);
				}
				continue;
			}

			if (observance instanceof DaylightSavingsTime && !daylightStartDates.contains(boundary.getObservanceInStart())) {
				UtcOffset offset = getOffset(observance.getTimezoneOffsetTo());
				DateTimeValue start = boundary.getObservanceInStart();
				DateTimeValue end = null;
				if (observanceAfter != null) {
					end = boundary.getObservanceAfterStart();
				}

				String standardName = icalTz.getDisplayName(false, TimeZone.SHORT);
				String daylightName = icalTz.getDisplayName(true, TimeZone.SHORT);

				Daylight daylight = new Daylight(true, offset, convert(start), convert(end), standardName, daylightName);
				daylights.add(daylight);
				daylightStartDates.add(start);
				continue;
			}
		}

		if (tz == null) {
			int rawOffset = icalTz.getRawOffset();
			UtcOffset offset = new UtcOffset(rawOffset);
			tz = new Timezone(offset);
		}

		if (daylights.isEmpty()) {
			Daylight daylight = new Daylight();
			daylight.setDaylight(false);
			daylights.add(daylight);
		}

		return new VCalTimezoneProperties(daylights, tz);
	}