/** * Builds an anchor if the wave has a specific wavelet and blip, else returns * null. */ private Anchor maybeMakeAnchor(WaveletId waveletId, String blipId) { Anchor anchor = null; if (isValidAnchor(waveletId, blipId)) { WaveletBasedConversation anchorConversation = wave.getConversation(waveletId); ConversationBlip anchorBlip = anchorConversation.getBlip(blipId); anchor = new Anchor(anchorConversation, anchorBlip); } return anchor; }
@Override public Anchor createAnchor(ConversationBlip blip) { checkIsUsable(); return new Anchor(this, blip); }